Unknown CrashDetect error
#1

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.
Reply
#2

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).
Reply
#3

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
Reply
#4

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.
Reply
#5

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


Forum Jump:


Users browsing this thread: 1 Guest(s)