15.03.2014, 06:53
pawn Код:
CMD:demote(playerid,params[])
{
if(PlayerInfo[playerid][pAdmin] == 5)
{
new
pplayerid,stringy[500];
if(sscanf(params, "u", pplayerid)) return SendClientMessage(playerid, -1, "Usage: /promote [Player ID/Player Name]");
PlayerInfo[pplayerid][pAdmin]--;
format(stringy,sizeof(stringy),""COL_GREEN"[ADMIN]:"COL_WHITE" %s has been demoted!",GetPlayerName(pplayerid));
SendClientMessageToAll(-1,stringy);
format(stringy,sizeof(stringy),""COL_GREEN"[ADMIN]:"COL_WHITE" %s has been demoted.",GetPlayerName(pplayerid));
SendClientMessage(playerid, -1, stringy);
} else SendClientMessage(playerid, -1, "[SERVER]: You must be a higher level administrator to use that command.");
return 1;
}
Код:
C:\Documents and Settings\eros\Desktop\SAMP Server\gamemodes\SVR12.pwn(1571) : warning 202: number of arguments does not match definition C:\Documents and Settings\eros\Desktop\SAMP Server\gamemodes\SVR12.pwn(1571) : warning 202: number of arguments does not match definition
pawn Код:
format(stringy,sizeof(stringy),""COL_GREEN"[ADMIN]:"COL_WHITE" %s has been demoted.",GetPlayerName(pplayerid));