Help !
#1

How to fix this?

Код:
[11:59:56] [debug] Run time error 4: "Array index out of bounds"
[11:59:56] [debug]  Accessing element at index 65535 past array upper bound 1999
[11:59:56] [debug] AMX backtrace:
[11:59:56] [debug] #0 003f5188 in LockGangVehicle (family=0, carid=65535, type=2) at C:\Users\Faiz\Desktop\Haziq\SERVER FILES\gamemodes\Gamemode.pwn:72884
[11:59:56] [debug] #1 0031442c in public OnVehicleSpawn (vehicleid=106) at C:\Users\Faiz\Desktop\Haziq\SERVER FILES\gamemodes\Gamemode.pwn:54038
[11:59:56] [debug] #2 native SetVehicleToRespawn () from samp-server.exe
[11:59:56] [debug] #3 002df85c in public Audio_OnGameModeInit () at C:\Users\Faiz\Desktop\Haziq\SERVER FILES\gamemodes\Gamemode.pwn:50532
[11:59:56] [debug] #4 native CallLocalFunction () from samp-server.exe
[11:59:56] [debug] #5 00015508 in public SSCANF_OnGameModeInit () at C:\Users\Faiz\Desktop\Haziq\SERVER FILES\pawno\include\audio.inc:119
[11:59:56] [debug] #6 0000e9c8 in public Timers_OnScriptInit () at C:\Users\Faiz\Desktop\Haziq\SERVER FILES\pawno\include\sscanf2.inc:205
[11:59:56] [debug] #7 native CallLocalFunction () from samp-server.exe
[11:59:56] [debug] #8 0000e410 in public YVers_OnScriptInit () at C:\Users\Faiz\Desktop\Haziq\SERVER FILES\pawno\include\YSI\y_timers.inc:225
[11:59:56] [debug] #9 native CallLocalFunction () from samp-server.exe
[11:59:56] [debug] #10 0000cd80 in public zcmd_OnGameModeInit () at C:\Users\Faiz\Desktop\Haziq\SERVER FILES\pawno\include\YSI\internal\y_version.inc:154
[11:59:56] [debug] #11 native CallLocalFunction () from samp-server.exe
[11:59:56] [debug] #12 0000c61c in public CB_OnGameModeInit () at C:\Users\Faiz\Desktop\Haziq\SERVER FILES\pawno\include\ZCMD.inc:68
[11:59:56] [debug] #13 00005824 in public Itter_OnGameModeInit () at C:\Users\Faiz\Desktop\Haziq\SERVER FILES\pawno\include\callbacks.inc:364
[11:59:56] [debug] #14 native CallLocalFunction () from samp-server.exe
[11:59:56] [debug] #15 00001758 in public OnGameModeInit () at C:\Users\Faiz\Desktop\Haziq\SERVER FILES\pawno\include\foreach.inc:631
Reply
#2

https://sampforum.blast.hk/showthread.php?tid=576436

You had already a thread opened for the same reason, you could reply there instead of opening a new thread.

Anyway, you did what I told you to the previous thread and you got the information we need.

Post LockGangVehicle function and line 72884 so we can prevent the run time error though you may need to post a part of code from OnVehicleSpawn callback (54038 line and few lines before and after) as the vehicleid is 106 and the "carid" in LockGangVehicle is INVALID_VEHICLE_ID. It's meant to be the same or not?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)