23.10.2014, 23:09
pawn Код:
[debug] Run time error 4: "Array index out of bounds"
[00:50:43] [debug] Accessing element at index 72 past array upper bound 71
[00:50:43] [debug] AMX backtrace:
[00:50:43] [debug] #0 0051d860 in public AddCar (72) from wg-rp.amx
[00:50:43] [debug] #1 00500dbc in public Itter_OnGameModeInit () from wg-rp.amx
[00:50:43] [debug] #2 native CallLocalFunction () from samp03svr
[00:50:43] [debug] #3 00003940 in public Streamer_OnGameModeInit () from wg-rp.amx
[00:50:43] [debug] #4 native CallLocalFunction () from samp03svr
[00:50:43] [debug] #5 00002490 in public OnGameModeInit () from wg-rp.amx
pawn Код:
forward AddCar(carcoords);
public AddCar(carcoords)
{
new randcol = random(126);
new randcol2 = 1;
if(rccounter == 20)
{
rccounter = 0;
}
AddStaticVehicleEx(carselect[rccounter], CarSpawns[carcoords][pos_x], CarSpawns[carcoords][pos_y], CarSpawns[carcoords][pos_z], CarSpawns[carcoords][z_angle], randcol, randcol2, 900);
rccounter++;
return 1;
}