Jump to content
The simFlight Network Forums

Recommended Posts

Posted
Hi Pete

 

I need to read the flight number through an lua scipt, but it's not working as i expected, can you help me out with it?

 

I got this:

 

flightnumber = ipc.readUD(0x3130)

 

Thanks

Posted

 

I need to read the flight number through an lua scipt, but it's not working as i expected, can you help me out with it?
 
I got this:
 
flightnumber = ipc.readUD(0x3130)
 

 

You are reading an Unsigned DWORD (32-bit integer). If you actually refer to the Offsets list, as of course you should, you will see that it is a character string, not a binary number! After all it may also contain the airline prefix which is not numerical.

 

Please do use the documentation supplied.

 

Pete

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.