13.09.2014, 15:32
Sim eu sei, mas acho que nгo esta a ultrupassar ennhuma, veja:
Tenho a certeza, que o erro esta onde eu indiquei, pois foi quando adicionei isso que comeзou a dar o erro e estб a dar no local onde eu adicionei.....
pawn Code:
new NomesArena[] = {"EL QUEBRADOS"};
new bool:InArena[MAX_PLAYERS];
new aKills[MAX_PLAYERS];
new aDeaths[MAX_PLAYERS];
new PlayerText:ArenaTD[MAX_PLAYERS][15];
//\/\/\/\/ \/\/ ERRO AQUI \/\/\/\/\/\/ \/\/
if(InArena[playerid] == true){
format(string, sizeof string, "%d", aKills[playerid]);
PlayerTextDrawSetString(playerid,ArenaTD[playerid][3], string);
format(string, sizeof string, "%d", aDeaths[playerid]);
PlayerTextDrawSetString(playerid,ArenaTD[playerid][7], string);
if(aDeaths[playerid] == 0) format(string,sizeof(string),"%d.00", aKills[playerid]);
else if(aKills[playerid] != aDeaths[playerid])format(string,sizeof(string),"%.2f",float(aKills[playerid])/float(aDeaths[playerid]));
else if(aKills[playerid] == aDeaths[playerid])format(string,sizeof(string),"%d", 1);
PlayerTextDrawSetString(playerid,ArenaTD[playerid][10], string);
format(string, sizeof string, "%d:%d", TempoArena/60, TempoArena%60);
PlayerTextDrawSetString(playerid,ArenaTD[playerid][13], string);
format(string, sizeof string, "[%s]", NomesArena[ArenaID]);
PlayerTextDrawSetString(playerid,ArenaTD[playerid][14], string);
}
Code:
[debug] Run time error 4: "Array index out of bounds" [debug] AMX backtrace: [debug] #0 00067dc0 in public TimerPessoal (0x00000005)