Problemi 'hitna pomoć'

Započeo Plen Ki Mun, April 13, 2018, 13:45:31 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 3 gostiju pregledaju ovu temu.

Problem(error/warning): Pojma nemam, sve dam updejet sscanf,streamer YSI 4.0 crashdetect, i kada se na serveru nalaze tri igraca, cetvri nemoze da uÄ'e, to jest pojavi se nekakva cudni box crni na ekranu i nema dialoga za reg, a ovo troje sto je na serveru sve im je uredu. @Ino42O
Dio skripte: Ako ista treba javite

Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log):

[12:21:08] [debug] Run time error 4: "Array index out of bounds"
[12:21:08] [debug] AMX backtrace:
[12:21:08] [debug] #0 000b213c in public Dialog_OnPlayerConnect (3) from CnR.amx
[12:21:08] [debug] #1 0004abd4 in public TIMER_OnPlayerConnect (3) from CnR.amx
[12:21:08] [debug] #2 native CallLocalFunction () from samp-server.exe
[12:21:08] [debug] #3 00048264 in public SSCANF_OnPlayerConnect (3) from CnR.amx
[12:21:08] [debug] #4 native CallLocalFunction () from samp-server.exe
[12:21:08] [debug] #5 00038a9c in public _y_utils_OnPlayerConnect (3) from CnR.amx
[12:21:08] [debug] #6 0000b028 in ?? (3, 1, 0, 0, 4, 3, 0, 0, 0, 0, ... <1073741813 arguments>) from CnR.amx
[12:21:08] [debug] #7 00010364 in public OnPlayerConnect (3) from CnR.amx
[12:21:38] [debug] Run time error 4: "Array index out of bounds"
[12:21:38] [debug] AMX backtrace:
[12:21:38] [debug] #0 000b7e84 in public Dialog_OnPlayerDisconnect (3, 1) from CnR.amx
[12:21:38] [debug] #1 0004ada0 in public TIMER_OnPlayerDisconnect (3, 1) from CnR.amx
[12:21:38] [debug] #2 native CallLocalFunction () from samp-server.exe
[12:21:38] [debug] #3 000482e4 in public ppb_OnPlayerDisconnect (3, 1) from CnR.amx
[12:21:38] [debug] #4 00046054 in public SSCANF_OnPlayerDisconnect (3, 1) from CnR.amx
[12:21:38] [debug] #5 native CallLocalFunction () from samp-server.exe
[12:21:38] [debug] #6 00038b20 in public _y_utils_OnPlayerDisconnect (3, 1) from CnR.amx
[12:21:38] [debug] #7 0000b098 in ?? (3, 1, 1, 0, 0, 8, 3, 1, 0, 0, ... <1073741813 arguments>) from CnR.amx
[12:21:38] [debug] #8 00010428 in public OnPlayerDisconnect (3, 1) from CnR.amx




Slika/video ingame problema(obavezno ako je ingame problem): link slike

Jel ti mozda MAX_PLAYERS definiran kao 3?
Software Developer

Citat: Ino42O poslato April 13, 2018, 17:21:26 POSLE PODNE
Jel ti mozda MAX_PLAYERS definiran kao 3?

#undef  	MAX_PLAYERS
#define 	MAX_PLAYERS (100)


Mucim se sa time cijeli dan, nikako da rijesim je**** problem, vec sam iznerviran. A to se samo pojavi ako je na serveru 3 ili vise igraca, pojma nemam do čega je.
Poslednja Izmena: April 13, 2018, 17:27:00 POSLE PODNE od Vantage

Neki array (niz) kojem vjerovatno pristupas putem igracevog ID-a u ovom slucaju index 3, nema toliki limit, pogledaj nizove pod OnPlayerConnected, vidi dal je ijedan velicine 3
Software Developer