- Messages
- 181
- Country

Hello,
I wonder how can I make strings to include letters, not numbers. I am creating warning system that will show actual failures etc, but my code:
if engine fails returns only "1" as far as it is the only number included. Letters dont appear. I tried experimenting with formating nubmers, but still the same.
///////////////////
And one more - how can I make <visible> to depend on some number, e. g. fuel ammount?
doesnt work, for some reason (should appear when less than 500lb of fuel is on board...
I wonder how can I make strings to include letters, not numbers. I am creating warning system that will show actual failures etc, but my code:
Code:
<!-- text ENG1 fail--><Element>
<Visible>(A:ENG1 FAILED, Enum) 1 ==</Visible>
<Position X="400" Y="660"/>
<Text X="400" Y="40" Bright="Yes" Length="16" Font="Arial" Color="red" Adjust="Left" VerticalAdjust="Center">
<String>%( "ENGINE 1 FAILURE" )%!16s!</String>
</Text>
</Element>
///////////////////
And one more - how can I make <visible> to depend on some number, e. g. fuel ammount?
Code:
<Element>
<Visible>(A:FUEL TOTAL QUANTITY WEIGHT,pounds) 500 <</Visible>
<Position X="400" Y="660"/>
<Text X="400" Y="40" Bright="Yes" Length="16" Font="Arial" Color="red" Adjust="Left" VerticalAdjust="Center">
<String>%( "LOW FUEL" )%!16s!</String>
</Text>
</Element>
Last edited:

