dazzz Posted April 1, 2015 Report Share Posted April 1, 2015 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 Link to comment Share on other sites More sharing options...
Pete Dowson Posted April 1, 2015 Report Share Posted April 1, 2015 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 Link to comment Share on other sites More sharing options...
dazzz Posted April 1, 2015 Author Report Share Posted April 1, 2015 Sorted with ipc.readSTR, thanks Pete Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now