now i have the Problem arma 3 shows me a error taht a ; is missing
my code look like this
if (isServer) then {
reservedSlots = ["klon_medic1","klon_medic2","klon_medic3","klon_medic4"];
["reserved", "onPlayerConnected", {
private ["_uid","_player","_UIDList"];
_UIDList = call compile preProcessFile "Whitelists\medic_whitelist.txt";
if (_uid < 1) exitWith {};
_player = objNull;
while {_player isNull} do {
sleep 1;
{
if (_uid == getPlayerUID _x) then {
_player = _x;
};
} forEach playableUnits;
};
if (_player in reservedSlots) then {
if (! _uid in _UIDList ) then {
[["Du bist kein Medic!"], BIS_fnc_infoText, _player, false] call BIS_fnc_MP;
sleep 1;
[["end1",false], "BIS_fnc_endMission", _player, false] call BIS_fnc_MP;
};
};
}] call BIS_fnc_addStackedEventHandler;
};