Error 4 Problems
#1

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;
}
HELP
Reply


Messages In This Thread
Error 4 Problems - by HoboGamings - 23.10.2014, 23:09
Respuesta: Error 4 Problems - by !R1Ch@rD! - 24.10.2014, 00:03
Re: Error 4 Problems - by TakeiT - 24.10.2014, 00:08
Re: Respuesta: Error 4 Problems - by HoboGamings - 24.10.2014, 01:08
Respuesta: Error 4 Problems - by !R1Ch@rD! - 24.10.2014, 03:11

Forum Jump:


Users browsing this thread: 2 Guest(s)