Archived

This topic is now archived and is closed to further replies.

old_doggie

Fuel used gauge

Recommended Posts

Hi all,I'm new in XML and also strings is not my best in XML gauges.I found some code that shows the total fuel that was used, butit's not exactly what i want.Can anyone help how to change this string to show fuel burned inKilograms, and only one tank (left, or Right) ?Thanks for any help, i just stack with this gauge.%((G:Var2) (A:fuel total quantity weight, pounds) near - (G:Var1) *)%!04s!I look for XML tutorials but the only one i found was www.fs2x.comtutorials but there is no much explanation about strings and howto use integers. Is there any real good tutorial about using FSstrings and variables ?Thanks againMax .M

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

Try:-%((G:Var2) (A:fuel left quantity,gallons) 2.72 * near - (G:Var1) *)%!04s!Get the ' 2.72 ' weight per gallon factor from the *.air file item No 312 which is in pounds and convert it to Kgs.Regards, Ted.

Share this post


Link to post
Share on other sites

Or you can try this:(%((A:FUEL LEFT QUANTITY, meter cubed) (A:FUEL WEIGHT PER GALLON, kilogram per cubic meter) *)%!d! kgs)Douglas

Share this post


Link to post
Share on other sites