PDA

View Full Version : Error: index out of bounds


Guenhwyvar
01-17-2009, 15:35
Got this:

L 01/17/2009 - 21:31:27: Info (map "de_dust2_remake2k") (file "addons/amxmodx/logs/error_20090117.log")
L 01/17/2009 - 21:31:27: [AMXX] Displaying debug trace (plugin "xredirect.amxx")
L 01/17/2009 - 21:31:27: [AMXX] Run time error 4: index out of bounds
L 01/17/2009 - 21:31:27: [AMXX] [0] xredirect.sma::welcome_message (line 2402)

Using 1.0.3. Do you need more Info?

xOR
01-17-2009, 23:59
we had that error in the past but actually i put some if around it that pretty much makes sure it can't happen again. there is only one indexing variable left that is not checked and could get out of bounds: g_nOwnServer, the variable holding the own server. so does your log, by any chance, also show a message that the own server was not detected?
and is the error reproducable? if your own server is detected and the error is reproducable i would send you a modified version that shows me the info i need to track the error down.

also if the player id would be -1 we would see the same situation. but first answer my other questions. the debug version will then tell me, if it's the player id or something else.

Guenhwyvar
01-18-2009, 04:54
Shame on me: My serverlist.ini was outdated (grr) and the own IP was incorrect.
In the normal logs (expected this in the error logfiles), the "Own server has not been detected" error appeared.

Fixed the serverlist.ini and will report here if everything is fine again :).

Sorry for inconvenience!

xOR
01-18-2009, 10:06
well, shit happens. glad to hear you seem to have found the cause for the problem.
and you're right, this would belong into the error log, i might change that later i guess.

Guenhwyvar
01-18-2009, 12:50
Everything works fine now :).