SA-MP Forums Archive
Problems OnPlayerKeyStateChange - 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: Problems OnPlayerKeyStateChange (/showthread.php?tid=653036)



Problems OnPlayerKeyStateChange - Marlborox - 24.04.2018

Hello, I have a problem with this error. but when I want to go into the house / biz, but when I press in, I do not come in, the character stays out and gives me that error in the console, how can I solve it?

[18:55:14] [debug] Run time error 4: "Array index out of bounds"
[18:55:14] [debug] Accessing element at index 17 past array upper bound 15
[18:55:14] [debug] AMX backtrace:
[18:55:14] [debug] #0 000f1f84 in ?? (0, 16, 0) from sapphire.amx
[18:55:14] [debug] #1 0002ba10 in public OnPlayerKeyStateChange (0, 16, 0) from sapphire.amx


Code OnPlayerKeyStateChange : https://pastebin.com/25GHzFN4


Re: Problems OnPlayerKeyStateChange - UFF - 24.04.2018

compile you script with -d3 and post the serverlog

https://github.com/Zeex/samp-plugin-...ith-debug-info


Re: Problems OnPlayerKeyStateChange - Marlborox - 24.04.2018

Quote:
Originally Posted by UFF
Посмотреть сообщение
compile you script with -d3 and post the serverlog

https://github.com/Zeex/samp-plugin-...ith-debug-info
https://www57.zippyshare.com/v/vBjfhDmD/file.html