[Ajuda] Comando defeituso
#1

Tentei fazer um comando que retornasse pro player o score dele, mas sem sucesso. (FUU)

Comando:

pawn Код:
if(strcmp(cmd, "/stats", true) == 0) {
        new kills[MAX_PLAYERS], string[5]; GetPlayerScore(playerid, kills, sizeof kills);
        format(string, sizeof(string),"Matou: %s ", kills);
        SendClientMessage(COLOR_RED, string);
    return 1;
}
Erros+Warnings

pawn Код:
C:\Users\Abelardo\Desktop\Projeto Samp\gamemodes\Deserto.pwn(139) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Abelardo\Desktop\Projeto Samp\gamemodes\Deserto.pwn(139) : warning 202: number of arguments does not match definition
C:\Users\Abelardo\Desktop\Projeto Samp\gamemodes\Deserto.pwn(139) : warning 202: number of arguments does not match definition
C:\Users\Abelardo\Desktop\Projeto Samp\gamemodes\Deserto.pwn(141) : error 035: argument type mismatch (argument 2)
Reply


Messages In This Thread
[Ajuda] Comando defeituso - by arakuta - 16.09.2011, 00:26
Re: [Ajuda] Comando defeituso - by Wendell_. - 16.09.2011, 00:27
Re: [Ajuda] Comando defeituso - by WLSF - 16.09.2011, 00:28
Re: [Ajuda] Comando defeituso - by Shelby - 16.09.2011, 00:30
Re: [Ajuda] Comando defeituso - by WLSF - 16.09.2011, 00:31
Re: [Ajuda] Comando defeituso - by Wendell_. - 16.09.2011, 00:32
Re: [Ajuda] Comando defeituso - by arakuta - 16.09.2011, 00:46
Re: [Ajuda] Comando defeituso - by Dolby - 16.09.2011, 00:48
Re: [Ajuda] Comando defeituso - by WLSF - 16.09.2011, 00:48
Re: [Ajuda] Comando defeituso - by Dolby - 16.09.2011, 00:52

Forum Jump:


Users browsing this thread: 4 Guest(s)