I am converting my old 1.0.4.2 script to the 1.0.5.1 version and i keep getting my client log spammed with messages like:
Error position: <s_vehicle_unlock;
player_curre>
Error Undefined variable in expression: s_vehicle_unlock
File mpmissions\__CUR_MP.Tavi\addons\specials.sqf, line 64
All i got in that line is:
player_Vehicle removeAction s_vehicle_unlock;
This is a variable inside a while loop that guarantees to remove an addaction from the player's options....because sometimes players turn too fast or something and some addactions are getting stuck in their GUI.
This worked fine before...and its not the first Undefined variable in expression i see...i keep getting errors like this when i 'remove' addactions or even when i am calling methods inside my code when the method is bellow the executing code.
Like this, i would get 100% a undefined variable in expression on for the _myvalue on line 2, although i am calling my_custom_function every time and with proper data.
Question
Sandbird
I am converting my old 1.0.4.2 script to the 1.0.5.1 version and i keep getting my client log spammed with messages like:
All i got in that line is:
This is a variable inside a while loop that guarantees to remove an addaction from the player's options....because sometimes players turn too fast or something and some addactions are getting stuck in their GUI.
This worked fine before...and its not the first Undefined variable in expression i see...i keep getting errors like this when i 'remove' addactions or even when i am calling methods inside my code when the method is bellow the executing code.
Example as an algorithm:
Like this, i would get 100% a undefined variable in expression on for the _myvalue on line 2, although i am calling my_custom_function every time and with proper data.
The same code was working fine in 1.0.4.2...
Link to comment
Share on other sites
37 answers to this question
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