06.10.2016, 07:06
Quote:
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. |
PHP код:
[07:43:16] [debug] Run 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] [debug] AMX 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