GetPlayerName problem - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: GetPlayerName problem (
/showthread.php?tid=500790)
GetPlayerName problem -
Extraordinariness - 15.03.2014
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));
Re: GetPlayerName problem -
]Rafaellos[ - 15.03.2014
You use it wrong. Check
HERE.
Re: GetPlayerName problem -
Extraordinariness - 15.03.2014
thanks. repped
Respuesta: GetPlayerName problem -
SickAttack - 15.03.2014
EDIT: Too late.