GetPlayerName problem
#1

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
Line 1571
pawn Код:
format(stringy,sizeof(stringy),""COL_GREEN"[ADMIN]:"COL_WHITE" %s has been demoted.",GetPlayerName(pplayerid));
Reply
#2

You use it wrong. Check HERE.
Reply
#3

thanks. repped
Reply
#4

EDIT: Too late.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)