Run time error 4
#2

Hello. First of all, update crashdetect to its latest version which is 4.12 (it can be found: https://github.com/Zeex/samp-plugin-...ases/tag/v4.12). Then compile your script with the debug mode, it might gives lines which caused it. Goto pawno directory and create a file pawn.cfg
Open the file and write in it:
pawn Код:
-d3
Save it and re-compile your script. Make sure that any plugin and include is up to date (latest versions). Last, run your server and wait for the new results.

For the results you've posted.

You've an array with size of 1000 (it can get 0-999). Although when the max value must be 999 in [], you use 1000 inside public houseup. It might be caused by a loop, instead of number1 < number2, you may use number1 <= number2 and inside the loop you pass the number in the array [number1]. That's an example, I'm trying to explain you what "Array index out of bounds" is.

The same goes for the rest, but the array had size of 1100 (0-1099) and it used 1100 (the same situtation with the above).
Reply


Messages In This Thread
Run time error 4 - by FLoRyN[RO] - 10.10.2013, 09:37
Re: Run time error 4 - by Konstantinos - 10.10.2013, 09:47
Re: Run time error 4 - by FLoRyN[RO] - 11.10.2013, 13:08
Re: Run time error 4 - by Jankingston - 11.10.2013, 14:16

Forum Jump:


Users browsing this thread: 1 Guest(s)