SA-MP Forums Archive
Command help - 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: Command help (/showthread.php?tid=511594)



Command help - DaYviSoN - 06.05.2014

Whats wrong? :3

PHP код:
CMD:setscore(playeridparams[])
{
    new 
targetidammount;
    if(!
IsPlayerAdmin(playerid)) return SendClientMessage(playerid,COLOR_NICERED,SEM_NIVEL);
    if(
sscanf(params,"ui"targetidammount)) return SendClientMessage(playeridCOLOR_ADMINCMD,"*{C8C8C8} Comando:{FFFFFF} /setscore [playerid/ParteDoNome] [Score]");
    if(!
IsPlayerConnected(targetid)) return SendClientMessage(playeridCOLOR_NICERED,"*[ERRO:] O jogador nao estб conectado!");
    
GetPlayerScore(targetidammount);
    return 
1;

PHP код:
C:\Users\Bruno\Desktop\CoD-Rivals\CoD-Rivals\gamemodes\CoD-R.pwn(413) : warning 202number of arguments does not match definition
Pawn compiler 3.2.3664              Copyright 
(c1997-2006ITB CompuPhase
1 Warning




Re: Command help - Konstantinos - 06.05.2014

It's "Set" not "Get".

pawn Код:
SetPlayerScore(targetid, ammount);



Re: Command help - DaYviSoN - 06.05.2014

Oh fuck yeah thank you +1