OnPlayerKeyStateChange not processing the key pressed?
#8

Quote:
Originally Posted by SickAttack
Посмотреть сообщение
It doesn't, but you should be saving the model ID of the vehicle you are inside in a variable in the first place. Since those functions do instructions, and the variable just stores the value which will always be the same.

You should also learn how to debug, that will help you see what runs, what doesn't, what turns out to be true, what doesn't, and so on.
I debugged it and it came out like this.

PHP код:
[07:43:16] [debugRun time error 4"Array index out of bounds"
[07:43:16] [debug]  Attempted to read/write array element at index 65535 in array of size 50
[07:43:16] [debugAMX backtrace:
[
07:43:16] [debug#0 00099e30 in public CB_OnPlayerStateChange (0, 1, 2) from vR.amx
[07:43:16] [debug#1 0001d160 in ?? (0, 1, 2) from vR.amx
[07:43:16] [debug#2 00006d48 in public OnPlayerStateChange (0, 1, 2) from vR.amx 
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)