13.04.2013, 11:54
pawn Код:
[15:18:53] [debug] Run time error 4: "Array index out of bounds"
[15:18:53] [debug] Accessing element at index 13 past array upper bound 12
[15:18:53] [debug] AMX backtrace:
[15:18:53] [debug] #0 00019198 in ?? () from GangWars.amx
[15:18:53] [debug] #1 00005a7c in public OnPlayerSpawn () from GangWars.amx
pawn Код:
public OnPlayerSpawn(playerid)
{
for(new i; i<sizeof(ZoneInfo); i++)
{
GangZoneShowForPlayer(playerid,ZonesID[i],GetGangZonesColor(i));
printf("parodo %d",i);
if(IsAttacked[i]==true)
{
print("flashina");
GangZoneFlashForPlayer(playerid,ZonesID[i],0xFF0000FF);
}
}
if(PlayerInfo[playerid][Team] == 1)
{
SetPlayerColor(playerid, 0x00FF0077);
}
else if(PlayerInfo[playerid][Team] == 2)
{
SetPlayerColor(playerid, 0x80008077);
}
return 1;
}