10.04.2012, 12:33
Erros:
Code:
+ rep
pawn Code:
Bernardo\Desktop\Server\samp\gamemodes\GM.pwn(10916) : error 047: array sizes do not match, or destination array is too small
C:\Users\Bernardo\Desktop\Server\samp\gamemodes\GM.pwn(10924) : warning 219: local variable "contagem" shadows a variable at a preceding level
C:\Users\Bernardo\Desktop\Server\samp\gamemodes\GM.pwn(10926) : error 006: must be assigned to an array
C:\Users\Bernardo\Desktop\Server\samp\gamemodes\GM.pwn(10927) : error 028: invalid subscript (not an array or too many subscripts): "contagem"
C:\Users\Bernardo\Desktop\Server\samp\gamemodes\GM.pwn(10927) : warning 215: expression has no effect
C:\Users\Bernardo\Desktop\Server\samp\gamemodes\GM.pwn(10927) : error 001: expected token: ";", but found "]"
C:\Users\Bernardo\Desktop\Server\samp\gamemodes\GM.pwn(10927) : error 029: invalid expression, assumed zero
C:\Users\Bernardo\Desktop\Server\samp\gamemodes\GM.pwn(10927) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
pawn Code:
if(strcmp("/contagem", cmdtext, true, 10) == 0)
{
new tmp[128];
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), PASTA_CONTAS, aname);
if(pAdmin[playerid] == 5) {
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, Vermelho, "Uso: /contagem [quantia]");
return 1;
}
new contando = strval(tmp);
new Float:contagemx,Float:contagemy,Float:contagemz; // BRAHMA *-*
GetPlayerPos(playerid, contagemx, contagemy, contagemz);
for(new contagem; contagem < MAX_PLAYERS; contagem++) {
if(IsPlayerInRangeOfPoint(contagem, 10.0, contagemx, contagemy, contagemz)) {
contar[playerid] = contar;
contagem[playerid] = SetTimerEx("Contagem", 1000, true, "i", i);
}
}
}
else {
SendClientMessage(playerid, Vermelho, "I ERRO I Vocк nгo tem acesso a esse comando!");
}
return 1;
}