run time error 4
#9

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
Since you've compiled with debug info just wait for the run time error to occur again and in the server log you'll get more information from crashdetect plugin. Post that part and the code from IsTruckerVehicle function.
server_log.txt
PHP код:
[23:25:17] [debugRun time error 4"Array index out of bounds"
[23:25:17] [debug]  Accessing element at index 9 past array upper bound 8
[23:25:17] [debugAMX backtrace:
[
23:25:17] [debug#0 00334408 in IsTruckerVehicle (vehicleid=1) at C:\Users\Brooks\Desktop\test\gamemodes\gm.pwn:48371
[23:25:17] [debug#1 0007e824 in ?? (... <1 argument>) at C:\Users\Brooks\Desktop\test\gamemodes\gm.pwn:7634
[23:25:17] [debug#2 0001cbe0 in public OnVehicleSpawn (vehicleid=1) at C:\Users\Brooks\Desktop\test\pawno\include\YSI\y_hooks/impl.inc:798
[23:25:17] [debug#3 native SetVehicleToRespawn () from samp-server.exe
[23:25:17] [debug#4 0006e0b0 in ?? () at C:\Users\Brooks\Desktop\test\gamemodes\gm.pwn:6121
[23:25:17] [debug#5 0001c1b8 in public RL_OnGameModeInit () at C:\Users\Brooks\Desktop\test\pawno\include\YSI\y_hooks/impl.inc:484
[23:25:17] [debug#6 native CallLocalFunction () from samp-server.exe
[23:25:17] [debug#7 0000cb30 in public zcmd_OnGameModeInit () at C:\Users\Brooks\Desktop\test\pawno\include\OPSP.inc:240
[23:25:17] [debug#8 native CallLocalFunction () from samp-server.exe
[23:25:17] [debug#9 0000aa18 in public SSCANF_OnGameModeInit () at C:\Users\Brooks\Desktop\test\pawno\include\zcmd.inc:68
[23:25:17] [debug#10 000040bc in public Itter_OnGameModeInit () at C:\Users\Brooks\Desktop\test\pawno\include\sscanf2.inc:205
[23:25:17] [debug#11 native CallLocalFunction () from samp-server.exe
[23:25:17] [debug#12 00003008 in public ScriptInit_OnGameModeInit () at C:\Users\Brooks\Desktop\test\pawno\include\YSI\y_iterate.inc:791
[23:25:17] [debug#13 00001c28 in public OnGameModeInit () at C:\Users\Brooks\Desktop\test\pawno\include\YSI\internal\..\y_scriptinit.inc:171 
IsTruckerVehicle code
PHP код:
stock IsTruckerVehicle(vehicleid)
{
    for(new 
i=0i<10i++)
    {
        if(
vehicleid == JobInfo[JOB_TRUCKER][jCars][i]) return 1;
    }
    return 
0;

Reply


Messages In This Thread
run time error 4 - by radiobizza - 16.03.2016, 12:40
Re: run time error 4 - by Virtual1ty - 16.03.2016, 12:51
Re: run time error 4 - by radiobizza - 16.03.2016, 13:05
Re: run time error 4 - by radiobizza - 16.03.2016, 13:14
Re: run time error 4 - by radiobizza - 16.03.2016, 15:30
Re: run time error 4 - by Konstantinos - 16.03.2016, 17:05
Re: run time error 4 - by radiobizza - 16.03.2016, 20:30
Re: run time error 4 - by Konstantinos - 16.03.2016, 20:46
Re: run time error 4 - by radiobizza - 16.03.2016, 21:26
Re: run time error 4 - by Konstantinos - 16.03.2016, 21:30

Forum Jump:


Users browsing this thread: 1 Guest(s)