SA-MP Forums Archive
Crashdetect errors - 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: Crashdetect errors (/showthread.php?tid=612527)



Crashdetect errors - Flash20 - 18.07.2016

Hi!

What are these mistakes, exactly?

Код:
[warning] client exceeded 'ackslimit' 127.0.0.1:63203 (3060) Limit: 3000/sec
And:

Код:
[01:21:21] [debug] AMX backtrace:
[01:21:21] [debug] #0 000535c0 in public OnPlayerKeyStateChange (0, 16, 0) from lvrp.amx
[01:21:21] [debug] Run time error 4: "Array index out of bounds"
[01:21:21] [debug]  Accessing element at negative index -1
Thanks in advance!


Re: Crashdetect errors - Sew_Sumi - 19.07.2016

You'll want to be posting OnPlayerKeyStateChange up.


Re: Crashdetect errors - Flash20 - 21.07.2016

There's only one error.

Код:
[debug] Run time error 20: "Invalid index parameter (bad entry point)"
Pic:



Re: Crashdetect errors - Sew_Sumi - 22.07.2016

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

That error is probably unrelated to the error you had prior, but it more than likely says there is more wrong with your script than you think.


Re: Crashdetect errors - IstuntmanI - 22.07.2016

For that spammed error you have to update crashdetect: https://github.com/Zeex/samp-plugin-...etect/releases

For the OnPlayerKeyStateChange error: you are accessing an array's index -1 (example: Array[ -1 ], they start from 0). Create a file named "pawn.cfg" where your pawno.exe is located and write "-d3 -r" in it, then compile the script again and check the errors again, you will see the exact line of the problem.

For the ackslimit problem: you use way too much resources (RPCs), you have to optimise your gamemode. (maybe you are using huge loops)