Weird problems
#5

Quote:
Originally Posted by andrejc999
Посмотреть сообщение
This is what comes out using -d3 params in the compiler:

Код:
[debug] Run time error 4: "Array index out of bounds"
[debug]  Attempted to read/write array element at index 65535 in array of size 2000
[debug] AMX backtrace:
[debug] #0 000470ac in CreateVehicleEx (vehicletype=65535, Float:x=0.00000, Float:y=0.00000, Float:z=0.00000, Float:rotation=0.00000, color1=0, color2=0, respawn_delay=0, addsiren=0) at F:\Samp server\gamemodes\BK-RP.pwn:1138
[debug] #1 002a6dc8 in LoadVeh () at F:\Samp server\gamemodes\BK-RP.pwn:28189
[debug] #2 000535c4 in public SSCANF_OnGameModeInit () at F:\Samp server\gamemodes\BK-RP.pwn:2431
[debug] #3 0003a17c in public ScriptInit_OnGameModeInit ()  at F:\Samp server\pawno\include\sscanf2.inc:211
[debug] #4 00000bd4 in public OnPlayerRequestSpawn () at F:\Samp server\pawno\include\YSI\..\YSI_Data\..\YSI_Internal\..\YSI_Core\..\YSI_Internal\..\YSI_Server\y_scriptinit.inc:237
EDIT: I fixed it, there was a bugged out vehicle in my scriptfiles.
You didn't fix it this has nothing to do with a "bugged out vehicle" that "bugged out vehicle" has everything to do with this script. Lack of array validity checking. Lack of saving validity checking.
Reply


Messages In This Thread
Weird problems - by andrejc999 - 23.02.2019, 18:45
Re: Weird problems - by Heress - 23.02.2019, 18:46
Re: Weird problems - by andrejc999 - 23.02.2019, 19:02
Re: Weird problems - by andrejc999 - 23.02.2019, 23:02
Re: Weird problems - by Pottus - 24.02.2019, 01:28

Forum Jump:


Users browsing this thread: 2 Guest(s)