20.05.2013, 23:28
Код:
(411) : error 017: undefined symbol "player" (411) : warning 215: expression has no effect (411) : error 001: expected token: ";", but found "]" (411) : error 029: invalid expression, assumed zero (411) : fatal error 107: too many error messages on one line
pawn Код:
line 411; if(player[playerid][AdminLevel] >= 6
pawn Код:
CMD:makeadmin(playerid, params[])
{
if(player[playerid][AdminLevel] >= 6)
{
new id, level,string[126];
if(sscanf(params, "ud", id, level))
return SendClientMessage(playerid, -1, "USAGE: /makeadmin [playerid] [level]");
if(player[playerid][AdminLevel] > player[id][AdminLevel]
{
player[id][AdminLevel] = level;
format(string, sizeof(string), "%s has made you admin level %d", GetNameEx(playerid), level);
SendClientMessage(id, -1, string);
format(string, sizeof(string), "You have made %s admin level %d", GetNameEx(id), level);
SendClientMessage(playerid, -1, string);
}
}
return 1;
}