I need to determine if a player is in a Zeus specified slot. The slot itself has a variable name set as "z1".
_zeusSlot = [z1,z2,z3];
if (player in _zeusSlot) then {
[2, format ["%1 is in a Zeus slot.", name player]] execvm "scripts\performance\log.sqf";
player call compile preprocessFileLineNumbers "scripts\zeus\zeus_events.sqf";
player setVariable ["isZeus", true];
};
THE PROBLEM
This seems to work, however it throws an error in the log when a player joins a slot that is NOT the zeus one.
_zeusSlot = [z1,z2,z3];
if (player in _zeusSlot) then {
>
13:05:21 Error position: <z2,z3];
if (player in _zeusSlot) then {
>
13:05:21 Error Undefined variable in expression: z2