Command help
#1

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

Reply
#2

It's "Set" not "Get".

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

Oh fuck yeah thank you +1
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)