25.07.2012, 12:03
ERRORS:
for
and
pawn Код:
[14:47:17] [debug] Run time error 4: "Array index out of bounds"
[14:47:17] [debug] Accessing element at index 8 past array upper bound 7
[14:47:17] [debug] AMX backtrace:
[14:47:17] [debug] #0 0001ee78 in public S@@_OnPlayerConnect () from (SE).amx
[14:47:17] [debug] #1 native CallLocalFunction () [00472c00] from samp-server.exe
[14:47:17] [debug] #2 00013268 in public Itter_OnPlayerConnect () from (SE).amx
[14:47:17] [debug] #3 native CallLocalFunction () [00472c00] from samp-server.exe
[14:47:17] [debug] #4 00009f20 in public SSCANF_OnPlayerConnect () from (SE).amx
[14:47:17] [debug] #5 native CallLocalFunction () [00472c00] from samp-server.exe
[14:47:17] [debug] #6 00001a48 in public Streamer_OnPlayerConnect () from (SE).amx
[14:47:17] [debug] #7 native CallLocalFunction () [00472c00] from samp-server.exe
[14:47:17] [debug] #8 00000f6c in public OnPlayerConnect () from (SE).amx
for
pawn Код:
for(new i=1; i<18; i++)
{
GangZoneShowForPlayer(playerid, turf[i], GangColors[ TeritoriuInfo[i][tColor] ]);
}
pawn Код:
for(new i=1; i<18; i++)
{
turf[i] = GangZoneCreate(TeritoriuInfo[i][tPozX1],TeritoriuInfo[i][tPozY1],TeritoriuInfo[i][tPozX2],TeritoriuInfo[i][tPozY2]);
}