Jump to content

Automatic Fuel Calculation


hjhjhgjgjh

Recommended Posts

  • 4 weeks later...

Hello

I have a little Problem with teh Fuel.tpl

I have added my Aircraft Beech 1900 C called with ICAO Code B190

<?php
       /**
	*Fuelflow Table
	*/
       $fuelflowB190 = 411;
$fuelflowC208 = 180;


       /**
	*Reserves Table
	*/
       $reservesB190 = 112;
$reservesC208 = 100;



       if($schedule->aircraft == 'B190')
       {
           $fuelflow = $fuelflowB190;
           $reserves = $reservesB190;

       }
       if($schedule->aircraft == 'C208')
       {
           $fuelflow = $fuelflowC208;
           $reserves = $reservesC208;

       }

But doenst work. The Cessna 208 is working fine but the B190 not

Can anybody help me

Thanks

Link to comment
Share on other sites

Hello

I have a little Problem with teh Fuel.tpl

I have added my Aircraft Beech 1900 C called with ICAO Code B190

<?php
       /**
	*Fuelflow Table
	*/
       $fuelflowB190 = 411;
$fuelflowC208 = 180;


       /**
	*Reserves Table
	*/
       $reservesB190 = 112;
$reservesC208 = 100;



       if($schedule->aircraft == 'B190')
       {
           $fuelflow = $fuelflowB190;
           $reserves = $reservesB190;

       }
       if($schedule->aircraft == 'C208')
       {
           $fuelflow = $fuelflowC208;
           $reserves = $reservesC208;

       }

But doenst work. The Cessna 208 is working fine but the B190 not

Can anybody help me

Thanks

you have to " if($schedule->aircraft == 'B190')" enter in the correct name / type of your Aircraft.

You can find this in the admin area under fleet.

It worked perfectly

Link to comment
Share on other sites

  • 2 months later...
  • 5 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...