[Ajuda] SetScore
#1

Meu code de setar score ao jogador e esse aqui.

PHP код:
CMD:setscore(playeridparams[])
{
    new 
id,score;
    static 
stringf[90];
    if(
Player[playerid][Admin] < 1) return SCM(playeridCOLOR_ORANGEMSG_CMD_WITHOUT_PERMISSION);
    if(
sscanf(params"di"idscore)) return SendClientMessage(playeridCOLORT_GREY""TAG_USOCORRETO"  /setscore [ID] [SCORE]");
    if(
score 1) return SendClientMessage(playeridCOLOR_ORANGE"Vocк precisa dar 1+ score");
    if(!
IsPlayerConnected(id)) return SendClientMessage(playeridCOLOR_ORANGE"Jogador off");
    
SetPlayerScore(idGetPlayerScore(id) + 1);
    
format(stringfsizeof(stringf), "Admin: %s setou seu score"Nome(playerid));
    
SendClientMessage(idCOLOR_ORANGEstringf);
    
SalvarDados(id);
    return 
1;

tб dando o seguinte erro:
PHP код:
C:\Users\Lan\Desktop\Game Mode\gamemodes\Mode.pwn(7294) : error 035argument type mismatch (argument 2
linha do erro:
PHP код:
if(sscanf(params"di"idscore)) return SendClientMessage(playeridCINZA"USAGE: /setscore [ID] [SCORE]"); 
as new jб estгo definindo ali em id, score nгo sei o porque do erro.
Reply


Messages In This Thread
SetScore - by BrGabrielBr - 18.03.2018, 23:47
Re: SetScore - by FerrariL - 18.03.2018, 23:53
Re: SetScore - by BrGabrielBr - 18.03.2018, 23:58
Re: SetScore - by PilateGR - 19.03.2018, 00:00
Re: SetScore - by BrGabrielBr - 19.03.2018, 00:09
Re: SetScore - by Lontresca - 19.03.2018, 00:13
Re: SetScore - by PilateGR - 19.03.2018, 00:13
Re: SetScore - by SpikeCompiler - 19.03.2018, 00:17
Re: SetScore - by BrGabrielBr - 19.03.2018, 00:44
Re: SetScore - by PilateGR - 19.03.2018, 01:18

Forum Jump:


Users browsing this thread: 1 Guest(s)