08.05.2014, 10:43
So yesterday i asked for an /admin [question] command and a /reply [id] [response] command.
/Reply is working fine but the /admin command is giving me errors
CODE:
ERROR:
855 line is : if(PlayerINFO[i][AdminLevel] >=1 {
/Reply is working fine but the /admin command is giving me errors
CODE:
pawn Код:
CMD:admin(playerid, params[])
{
new string[128];
new sName[MAX_PLAYER_NAME];
if(sscanf(params, "s", string)) return SendClientMessage(playerid, -1, "Usage /admin [question]");
GetPlayerName(playerid, sName, sizeof(sName));
new Message[128];
format(Message, sizeof(Message), "QUESTION from %s: %s", sName, string);
for(new i; i < MAX_PLAYERS; i++){
if(PlayerINFO[i][AdminLevel] >= 1 {
SendClientMessage(i, -1, Message);
}
}
return 1;
}
Код:
(855) : error 029: invalid expression, assumed zero