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.
Example as an algorithm:
private ["_blah","_myvalue"]; 1. [_blah] call my_custom_funtion; 2. if (_myvalue == "5") { 3. ...do stuff then 4. }; .... .... 77. my_custom_funtion = { ..... 99. _myvalue = "5"; 100. };
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...