SA-MP Forums Archive
Unknown CrashDetect error - 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: Unknown CrashDetect error (/showthread.php?tid=449557)



Unknown CrashDetect error - kadaradam - 09.07.2013

Hello,
Sometimes i got this error on my server:
Код:
[07/07/2013 19:15:05] [debug] Run time error 4: "Array index out of bounds"
[07/07/2013 19:15:05] [debug]  Accessing element at index 85 past array upper bound 59
[07/07/2013 19:15:05] [debug] AMX backtrace:
[07/07/2013 19:15:05] [debug] #0 0000adfc in public Streamer_OnPlayerConnect () from xenon.amx
[07/07/2013 19:15:05] [debug] #1 native CallLocalFunction () [080d2870] from start
[07/07/2013 19:15:05] [debug] #2 0000694c in ?? () from xenon.amx
[07/07/2013 19:15:05] [debug] #3 000008a8 in public OnPlayerConnect () from xenon.amx
What does this mean?The error does not always happen, but when it does, the OnPlayerConnect function wont called normally.

Thank you.


Re: Unknown CrashDetect error - DaRk_RaiN - 09.07.2013

As long as it didn't crash the server it isn't 'that' important, but anyways can you post the OnPlayerConnect code? (if it isn't long).


Re: Unknown CrashDetect error - kadaradam - 09.07.2013

The server wont crash,but i would like to fix this error, cause it's a bit annoying.

Here it is
http://pastebin.com/1aCVnFaYI


Re: Unknown CrashDetect error - Konstantinos - 09.07.2013

You must fix it. There was an array with size 60

pawn Код:
new
    Something[ 60 ]
;

// OnPlayerConnect

Something[ 85 ] = 0;
An example of what is about. It passes a number greater than 60, actually a number which is 85 somewhere in that callback.


Re: Unknown CrashDetect error - kadaradam - 09.07.2013

I increased the cell size of the string 140 to 180, at the "BanCheck" stock, and it's worked.
Thanks