16.05.2014, 08:38
Quote:
I'd go for:
pawn Code:
|
Anyways i've got one more question :
How can i fix this one too ?
Code:
(2171) : error 029: invalid expression, assumed zero
pawn Code:
CMD:admin(playerid, params[])
{
new string[128];
new sName[MAX_PLAYER_NAME];
new Message[128];
if(sscanf(params, "s", string)) return SendClientMessage(playerid, -1, "USAGE: /admin [question]");
GetPlayerName(playerid, sName, sizeof(sName));
format(Message, sizeof(Message), "[{FF0000}QUESTION{EEEEEE}] from %s: %s", sName, string);
for(new i; i < MAX_PLAYERS; i++){
if(PlayerInfo[i][pAdmin] >= 1 { // <======== Error line .
SendClientMessage(i,COLOR_YELLOW, Message);
}
}
return 1;
}