How could I find the error line?
#2

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

After compiling the script with -d3 flag, wait for it to happen again. It will log the function name and line.

The error means that there is an array with size 11 and valid bounds are 0 to 10. But script tried to access element with index 11.

Using <= MAX_SOMETHING in loops can also cause this (the correct would be < MAX_SOMETHING).
Reply


Messages In This Thread
How could I find the error line? - by KaliDobrev - 21.02.2019, 04:44
Re: How could I find the error line? - by Calisthenics - 21.02.2019, 08:10
Re: How could I find the error line? - by KaliDobrev - 21.02.2019, 16:09
Re: How could I find the error line? - by Calisthenics - 21.02.2019, 20:00
Re: How could I find the error line? - by KaliDobrev - 21.02.2019, 22:10

Forum Jump:


Users browsing this thread: 1 Guest(s)