Errors... - 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: Errors... (
/showthread.php?tid=463323)
Errors... -
NeroX98 - 11.09.2013
Hi guys... I don't have any problems with my OnGameModeInIt function but its really messy.
Here are the errors:
[16:38:56] [debug] Run time error 4: "Array index out of bounds"
[16:38:56] [debug] Accessing element at index 34 past array upper bound 33
[16:38:56] [debug] AMX backtrace:
[16:38:56] [debug] #0 00084d10 in public RL_OnGameModeInit ()
[16:38:56] [debug] #1 native CallLocalFunction () [080d2870] from samp03svr
[16:38:56] [debug] #2 00016e48 in ?? ()
[16:38:56] [debug] #3 0000dbe0 in public Itter_OnGameModeInit ()
[16:38:56] [debug] #4 native CallLocalFunction () [080d2870] from samp03svr
[16:38:56] [debug] #5 0000a714 in public ScriptInit_OnGameModeInit ()
[16:38:56] [debug] #6 000077f0 in public SSCANF_OnGameModeInit ()
[16:38:56] [debug] #7 native CallLocalFunction () [080d2870] from samp03svr
[16:38:56] [debug] #8 00001ac0 in public Streamer_OnGameModeInit ()
[16:38:56] [debug] #9 native CallLocalFunction () [080d2870] from samp03svr
[16:38:56] [debug] #10 0000120c in public OnGameModeInit ()
Any ideas ?
Re: Errors... -
Eyce - 11.09.2013
Could you post your
OnGameModeInit code?
Re: Errors... -
Dragonsaurus - 11.09.2013
Do you have any define like:
Re: Errors... -
Konstantinos - 11.09.2013
Quote:
Accessing element at index 34 past array upper bound 33
|
If you do, let's say:
pawn Код:
new
test[ 34 ]
;
// test can have values between:
// test[ 0 ] to test[ 33 ]
Although, it passes 34 and that's array index out of bounds.
Would you mind to post your OnGameModeInit callback if you cannot fix it?