17.12.2014, 14:01
this the code errors
and this full code
Quote:
pInfo[lookupid][pRank] = ARank; |
PHP код:
CMD:setrank(playerid, params[])
{
new str[128], rank, lookupid;
if(PlayerInfo[playerid][pRank] == 6) // this command is for admins level 6 only
{
if(sscanf(params, "ui", lookupid, rank)) return SendClientMessage(playerid, -1, "Usage: /setrank <PlayerID/PlayerName> <Rank>");
format(str, sizeof(str), "Admin %s (ID:%d) has setted %s (ID:%d) Rank to (%d)",GetName(playerid), playerid, GetName(lookupid), lookupid, rank);
SendClientMessageToAll(-1, str);
pInfo[lookupid][pRank] = ARank;
}
else
{
SendClientMessage(playerid, -1, "Sorry , you are not admin");
}
return 1;
}