I am so tired of this file....i've tried to update it 100000 times, and keep getting errors all the time.
diag_log ("CLEANUP: KILLIN> 19:37:20 Error position: <!= 1)) then { diag_log ("CLEANUP: KILLIN> 19:37:20 Error Generic error in expression 19:37:20 Error in expression <& (vehicle _x getVariable ["Mission",0] != 1)) then { diag_log ("CLEANUP: KILLIN> 19:37:20 Error position: <!= 1)) then { diag_log ("CLEANUP: KILLIN> 19:37:20 Error Generic error in expression
My current function:
class group_cleanup { name = "group_cleanup"; init = /*%FSM<STATEINIT""">*/"//Check for hackers" \n " {" \n " if(vehicle _x != _x && !(vehicle _x in PVDZE_serverObjectMonitor) && (isPlayer _x) && !((typeOf vehicle _x) in DZE_safeVehicle) && (typeOf vehicle _x) != ""ParachuteWest"" && (vehicle _x getVariable [""Mission"",0] != 1)) then {" \n " diag_log (""CLEANUP: KILLING A HACKER "" + (name _x) + "" "" + str(_x) + "" IN "" + (typeOf vehicle _x));" \n " (vehicle _x) setDamage 1;" \n " _x setDamage 1;" \n " };" \n " } forEach allUnits;"/*%FSM</STATEINIT""">*/; precondition = /*%FSM<STATEPRECONDITION""">*/""/*%FSM</STATEPRECONDITION""">*/; class Links { /*%FSM<LINK "true">*/ class true { priority = 0.000000; to="general_cleanup"; precondition = /*%FSM<CONDPRECONDITION""">*/""/*%FSM</CONDPRECONDITION""">*/; condition=/*%FSM<CONDITION""">*/"true"/*%FSM</CONDITION""">*/; action=/*%FSM<ACTION""">*/""/*%FSM</ACTION""">*/; }; /*%FSM</LINK>*/ }; };
I dont know if its related (probably is) but i get this as well:
19:59:29 Error in expression < }; if (_object getVariable "Mission" == 1) exitWith {}; if (_object getVari> 19:59:29 Error position: <== 1) exitWith {}; if (_object getVari> 19:59:29 Error Generic error in expression 19:59:29 File z\addons\dayz_server\compile\server_updateObject.sqf, line 30
The line is obvious there:
if (_object getVariable "Mission" == 1) exitWith {};
Someone please give me a correct function: Using Missions only...
-Thanks