02.03.2018, 21:27
What's wrong? The error is marked.
Код:
CMD:duty(playerid, params[]) { if(IsPlayerAdmin(playerid)) { if(GetPVarInt(playerid, "Duty") = 0) - Here is the error { SendClientMessage(playerid, COL_SERVER, "You are now on FBI duty!"); SetPlayerColor(playerid, COL_BLUE); SetPVarInt(playerid, "Duty", 1); } else if(GetPVarInt(playerid, "Duty") == 1) { SendClientMessage(playerid, COL_SERVER, "You are now off FBI duty!"); SetPlayerColor(playerid, -1) SetPVarInt(playerid, "Duty", 0; } } } return 1;