Array Index out of bounds
#1

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;
}
Anyone?
Reply


Messages In This Thread
Array Index out of bounds - by dusk - 13.04.2013, 11:54
Re: Array Index out of bounds - by Babul - 13.04.2013, 11:58
Re: Array Index out of bounds - by iJumbo - 13.04.2013, 11:58
Re: Array Index out of bounds - by dusk - 13.04.2013, 12:05
Re: Array Index out of bounds - by iggy1 - 13.04.2013, 12:49
Re: Array Index out of bounds - by dusk - 13.04.2013, 13:37

Forum Jump:


Users browsing this thread: 1 Guest(s)