Das ist das von dir geschriebene Script. xD Und den Fehler hab ich doch rot eingefärbt.
Code:
if (!isServer) exitWith {};
_min= 3;
_max= 7;
_anzahl= _min + (floor(random (_max - _min)));
_pos= getMarkerPos "patrol";
_wpPos= getmarkerPos "patrol-moveTo";
_Pat1= createGroup EAST;
_x= ceil (random 5);
if (_x==1) then{..};
if (_x==2) then{..};
if (_x==3) then{..};
if (_x==4) then{};
if (_x==5) then{for [{_a= 0},{_a < _anzahl},{_a = _a + 1}] do{if (_a== 0) then{"O_Soldier_F" createUnit [_pos, _Grp1,"",1, "Sergeant"];} else {"O_Soldier_F" createUnit [_pos, _Grp1,"",1, "Corporal"];};};};