How do I look for the error line? - 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: How do I look for the error line? (
/showthread.php?tid=654913)
How do I look for the error line? -
AlexanderChwojewski - 08.06.2018
Hello.
The server being on the host, everything works fine, what happens is that when another player enters, apart from me at the same time it crashes
pawn Код:
[18:57:59] [debug] Server crashed while executing SERVER.amx
[18:57:59] [debug] AMX backtrace:
[18:57:59] [debug] #0 00000014 in public OnDialogResponse (1, 201, 1, -1, 4186508) from SERVER.amx
This also comes out every so often when I enter
pawn Код:
[join] Alexander_Chowi has joined the server (0:localhost)
[debug] Run time error 4: "Array index out of bounds"
[debug] Accessing element at index 65535 past array upper bound 499
[debug] AMX backtrace:
[debug] #0 0011305c in public OnPlayerTakeDamage (0, 65535, 1099405107, 54, 3) from SERVER.amx
[debug] Run time error 4: "Array index out of bounds"
[debug] Accessing element at index 65535 past array upper bound 499
[debug] AMX backtrace:
[debug] #0 0011305c in public OnPlayerTakeDamage (0, 65535, 1084122727, 54, 3) from SERVER.amx
[debug] Run time error 4: "Array index out of bounds"
[debug] Accessing element at index 65535 past array upper bound 499
[debug] AMX backtrace:
[debug] #0 0011305c in public OnPlayerTakeDamage (0, 65535, 1084122727, 54, 3) from SERVER.amx
Would you be so kind as to explain me how to solve it, what are these errors and their causes?
Re: How do I look for the error line? -
Pottus - 09.06.2018
One of the most common easiest errors to fix.
https://sampforum.blast.hk/showthread.php?tid=654036
Re: How do I look for the error line? -
Logic_ - 09.06.2018
Furthermore, you may compile your script with -d3 tag and compile and run it with crash detect plugin loaded, which might return the exact lines where the error occurs - but of course, your error in your case is rather, simple.