25.09.2017, 14:10
Код:
CMD:freeze(playerid,params[]) { if(PlayerInfo[playerid][pAdmin] >= 1) { new id; if(sscanf(params,"u",id)) return SendClientMessage(playerid,-1,"USAGE: /freeze [ID]"); if(!IsPlayerConnected(id)) return SendClientMessage(playerid,-1,"That player is not connected"); new str[100] format(str,sizeof(str),"You have been frozen by an admin.", id); --> Error line. SendClientMessage(id, COLOR_RED, str); TogglePlayerControllable(id,0); } return 1; }
Код:
error 001: expected token: ";", but found "-identifier-"