15.03.2015, 14:15
I have made a timer to check for a car;
And when I compile it crashes, I take it out and compile it is fine?
Код:
timer CARCheck[5000](playerid) { if(GetPlayerState(playerid) != 2) NOPTrigger[playerid] = 0; new newcar = GetPlayerVehicleID(playerid); if(PlayerInfo[playerid][pAdmin] > 1 || GetPlayerState(playerid) != 2) return 1; else if(IsAnSASDCar(newcar) && PlayerInfo[playerid][pMember] != 1 && PlayerInfo[playerid][pLeader] != 1) ExecuteNOPAction(playerid); return 1; }