SA-MP Forums Archive
Crash Detect error problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Crash Detect error problem (/showthread.php?tid=615801)



Crash Detect error problem - ThatFag - 27.08.2016

hej
i was checking in my server and i saw that crash detecter is giving me this error

Код:
[11:28:29] [debug] #0 0017d254 in public OnVehicleStreamIn (959, 15) from k.amx
[11:28:33] [debug] Run time error 4: "Array index out of bounds"
[11:28:33] [debug]  Accessing element at index 1001 past array upper bound 1000
here is the onvehiclestreamin

Код:
public OnVehicleStreamIn(vehicleid, forplayerid)
{
	if(Vehicles[vehicleid][tmplocked] == 1 && Vehicles[vehicleid][tmplockedby] != forplayerid) SetVehicleParamsForPlayer(vehicleid, forplayerid, 0, 1);
	else SetVehicleParamsForPlayer(vehicleid, forplayerid, 0, 0);
}



Re: Crash Detect error problem - DarkSkull - 27.08.2016

Show us your Enum.


Re: Crash Detect error problem - Konstantinos - 27.08.2016

A part of the report is clearly missing for OnVehicleStreamIn issue. You got two different run time errors and you posted half from the one and half from the other.


Re: Crash Detect error problem - ThatFag - 27.08.2016

Actually thats all i got from it
and others are those.

Код:
[15:22:10] [debug] #0 001a28fc in ?? (19, 0) from k.amx
[15:22:10] [debug] #1 0002099c in public OnPlayerKeyStateChange (19, 16, 0) from k.amx
[15:22:10] [debug] Run time error 4: "Array index out of bounds"
[15:22:10] [debug]  Accessing element at index 1001 past array upper bound 1000
[15:22:10] [debug] AMX backtrace:
[15:22:10] [debug] #0 0001d12c in public OnPlayerKeyStateChange (9, 132, 134) from k.amx
[15:22:10] [debug] Run time error 4: "Array index out of bounds"
[15:22:10] [debug]  Accessing element at index 1001 past array upper bound 1000
[15:22:10] [debug] AMX backtrace:
[15:22:10] [debug] #0 0001d12c in public OnPlayerKeyStateChange (9, 132, 134) from k.amx



Re: Crash Detect error problem - Konstantinos - 27.08.2016

Above this line:
pawn Код:
[11:28:29] [debug] #0 0017d254 in public OnVehicleStreamIn (959, 15) from k.amx
describes which run time error is and more information such as the index if it's run time error 4. You'll need to find this otherwise we don't know what we're looking for in that callback.

The other two lines you posted:
pawn Код:
[11:28:33] [debug] Run time error 4: "Array index out of bounds"
[11:28:33] [debug]  Accessing element at index 1001 past array upper bound 1000
are part of your last post which happens in OnPlayerKeyStateChange and in a function that is called in OnPlayerKeyStateChange as well (two different though).

In order to make it easier for both of us, create a file called pawn.cfg (if you can't create the file with that extension, copy server.cfg from the main directory and rename it) into pawno folder and write -d3 in it. Save it and re-compile your scripts. Run the server and if you get reports from crashdetect, post them all.


Re: Crash Detect error problem - Shinja - 27.08.2016

Show the code not only the errors