Errors...
#1

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

Could you post your OnGameModeInit code?
Reply
#3

Do you have any define like:
pawn Код:
#define somename 33
Reply
#4

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?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)