Big bug
#1

Every player after id 23 is given an error in the server log:
Код:
[15:30:43] [debug] Run time error 4: "Array index out of bounds"
[15:30:43] [debug]  Accessing element at index 31 past array upper bound 23
[15:30:43] [debug] AMX backtrace:
[15:30:43] [debug] #0 00091ff4 in ?? (0x0000001f) from bvdomy.amx
[15:30:43] [debug] #1 00037f9c in public Itter_OnPlayerConnect (0x0000001f) from bvdomy.amx
[15:30:43] [debug] #2 00021878 in public SSCANF_OnPlayerConnect (0x0000001f) from bvdomy.amx
[15:30:43] [debug] #3 native CallLocalFunction () [080dc700] from samp03svr
[15:30:43] [debug] #4 0001bc6c in public Streamer_OnPlayerConnect (0x0000001f) from bvdomy.amx
[15:30:43] [debug] #5 0001b6c0 in ?? (0x0000001f) from bvdomy.amx
[15:30:43] [debug] #6 00006268 in public OnPlayerConnect (0x0000001f) from bvdomy.amx
And those players dont get the login dialog.
Reply
#2

Probably you need to increase MAX_PLAYERS
Reply
#3

Quote:
Originally Posted by Jefff
Посмотреть сообщение
Probably you need to increase MAX_PLAYERS
We have defined in include samp MAX_PLAYERS 500
Reply
#4

Maybe you got somewhere
#undef MAX_PLAYERS
#define MAX_PLAYERS 24

try
https://github.com/Zeex/samp-plugin-...ith-debug-info

and it will show you which line
Reply
#5

Quote:
Originally Posted by Jefff
Посмотреть сообщение
Maybe you got somewhere
#undef MAX_PLAYERS
#define MAX_PLAYERS 24

try
https://github.com/Zeex/samp-plugin-...ith-debug-info

and it will show you which line
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

Header size: 15932 bytes
Code size: 1545576 bytes
Data size: 19214624 bytes
Stack/heap size: 16384 bytes; estimated max. usage: unknown, due to recursion
Total requirements:20792516 bytes
Reply
#6

upload this gamemode and wait for Run time error 4
Reply
#7

Quote:
Originally Posted by Jefff
Посмотреть сообщение
upload this gamemode and wait for Run time error 4
This error occurs when a player gets id24 and more

[16:01:42] [join] Klaudio_Brown has joined the server (24:87.252.158.85)
[16:01:42] [debug] Run time error 4: "Array index out of bounds"
[16:01:42] [debug] Accessing element at index 24 past array upper bound 23
[16:01:42] [debug] AMX backtrace:
[16:01:42] [debug] #0 0008e3b8 in ?? (0x0000001 from bvdomy.amx
[16:01:42] [debug] #1 00035154 in public SSCANF_OnPlayerConnect (0x0000001 from bvdomy.amx
[16:01:42] [debug] #2 native CallLocalFunction () [080dc700] from samp03svr
[16:01:42] [debug] #3 0001cb40 in public Streamer_OnPlayerConnect (0x0000001 from bvdomy.amx
[16:01:42] [debug] #4 0001c418 in public Itter_OnPlayerConnect (0x0000001 from bvdomy.amx
[16:01:42] [debug] #5 0001b6e0 in ?? (0x0000001 from bvdomy.amx
[16:01:42] [debug] #6 00006208 in public OnPlayerConnect (0x0000001 from bvdomy.amx
Reply
#8

I know just upload your gamemode with -d3 flag and wait for this error
Reply
#9

Quote:
Originally Posted by Jefff
Посмотреть сообщение
I know just upload your gamemode with -d3 flag and wait for this error
Код:
[18:04:50] Incoming connection: 5.133.150.44:18671
[18:04:50] [join] Jozo_Black has joined the server (24:5.133.150.44)
[18:04:50] [debug] Run time error 4: "Array index out of bounds"
[18:04:50] [debug]  Accessing element at index 24 past array upper bound 23
[18:04:50] [debug] AMX backtrace:
[18:04:50] [debug] #0 000b89a8 in opcvarijable (id=24) at D:\Samp i ostalo\Balkan Vision\gamemodes\bvdomy.pwn:9914
[18:04:50] [debug] #1 00045aa4 in public SSCANF_OnPlayerConnect (playerid=24) at D:\Samp i ostalo\Balkan Vision\gamemodes\bvdomy.pwn:2793
[18:04:50] [debug] #2 native CallLocalFunction () [080dc700] from samp03svr
[18:04:50] [debug] #3 00022cd4 in public Streamer_OnPlayerConnect (playerid=24) at D:\Samp i ostalo\Balkan Vision\pawno\include\sscanf2.inc:202
[18:04:50] [debug] #4 0002260c in public Itter_OnPlayerConnect (playerid=24) at D:\Samp i ostalo\Balkan Vision\pawno\include\streamer.inc:305
[18:04:50] [debug] #5 000214b4 in ?? (... <1 argument>) at D:\Samp i ostalo\Balkan Vision\pawno\include\YSI\y_iterate.inc:646
[18:04:50] [debug] #6 00007248 in public OnPlayerConnect (playerid=24) at D:\Samp i ostalo\Balkan Vision\pawno\include\YSI\y_hooks/impl.inc:618
[18:04:53] Incoming connection: 5.133.140.19:12350
[18:04:53] [join] Jopa_Escobar has joined the server (25:5.133.140.19)
[18:04:53] [debug] Run time error 4: "Array index out of bounds"
[18:04:53] [debug]  Accessing element at index 25 past array upper bound 23
[18:04:53] [debug] AMX backtrace:
[18:04:53] [debug] #0 000b89a8 in opcvarijable (id=25) at D:\Samp i ostalo\Balkan Vision\gamemodes\bvdomy.pwn:9914
[18:04:53] [debug] #1 00045aa4 in public SSCANF_OnPlayerConnect (playerid=25) at D:\Samp i ostalo\Balkan Vision\gamemodes\bvdomy.pwn:2793
[18:04:53] [debug] #2 native CallLocalFunction () [080dc700] from samp03svr
[18:04:53] [debug] #3 00022cd4 in public Streamer_OnPlayerConnect (playerid=25) at D:\Samp i ostalo\Balkan Vision\pawno\include\sscanf2.inc:202
[18:04:53] [debug] #4 0002260c in public Itter_OnPlayerConnect (playerid=25) at D:\Samp i ostalo\Balkan Vision\pawno\include\streamer.inc:305
[18:04:53] [debug] #5 000214b4 in ?? (... <1 argument>) at D:\Samp i ostalo\Balkan Vision\pawno\include\YSI\y_iterate.inc:646
[18:04:53] [debug] #6 00007248 in public OnPlayerConnect (playerid=25) at D:\Samp i ostalo\Balkan Vision\pawno\include\YSI\y_hooks/impl.inc:618
Reply
#10

Post opcvarijable function and also the line 9914.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)