Jump to content
The simFlight Network Forums

Recommended Posts

Posted

You should be able to figure out your own code enhancements from these simple examples.

Yes, of course

Ouchdoesn't an error get reported?

no, i have removed the part "QNH -- LOC SET" only , nothing else within the file

i have changed the display section to the same form as the others:

       -- and lastly the message
       i = i + 1
       while actions[i] ~= 0 do 
          ipc.display(actions[i], 5)
          ipc.sleep(7000)
       i = i + 1
       end
   end

sleep(7000) makes a delay of 2 seconds between 2 messages. By the way, the log requires the additional "end"

Everything is fine now and i have a lot to do for a while :D

Thanks again

Posted

sleep(7000) makes a delay of 2 seconds

That had me puzzled till I realised 5 of those 7 seconds were occupied by the first message displaying! ;-)

By the way, the log requires the additional "end"

Every "ifthen" needs an "end" after the code it applies, as does every "whiledo".

Regards

Pete

Posted

Every "ifthen" needs an "end" after the code it applies, as does every "whiledo".

Meanwhile i have checked :D additionally i study the LUA-Manual, it is is not so easy for a 51 year old man, never learned a machine language, except "Basic" for some terms at school (approx 35 years ago) and never used thereafter :(

Posted
it is is not so easy for a 51 year old man

51? You don't look 51! Is that an old 'photo? :shock:

I was pretty bald by the time I was 40not much left at all now I'm nearly 66! ;-)

Pete

Posted

51? You don't look 51! Is that an old 'photo? :shock:

The Photo is 7 years old, i'm the the photographer in our family therefore pictures of me a rare. Due to new biometric regulations Pictures for Passports are now unusable , only for a "Wanted Poster" :D

I was pretty bald by the time I was 40not much left at all now I'm nearly 66! ;-)

Great!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.