16.09.2011, 00:26
Tentei fazer um comando que retornasse pro player o score dele, mas sem sucesso. (FUU)
Comando:
Erros+Warnings
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;
}
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)