Jump to content
  • 0

Server crash


Rayan

Question

Salut, habar nu am de ce serverul a luat crash..nu mi s-a mai intamplat pana acum de la BanCheck(daca functia asta e);

BanCheck: https://pastebin.com/hktHSTn6

server_logs

[16:07:25] [connection] incoming connection: 85.186.179.25:53720 id: 9
[16:07:26] [join] renko has joined the server (9:85.186.179.25)
[16:07:26] [debug] Server crashed while executing exgaming.amx
[16:07:26] [debug] AMX backtrace:
[16:07:26] [debug] #0 native SetPlayerName () from sscanf.so
[16:07:26] [debug] #1 00309c10 in BanCheck (playerid=9) at D:\gamemode\gamemodes\exgaming.pwn:48376
[16:07:26] [debug] #2 00095690 in public OnPlPa_OnPlayerConnect (playerid=9) at D:\gamemode\gamemodes\exgaming.pwn:8218
[16:07:26] [debug] #3 native CallLocalFunction () from samp03svr
[16:07:26] [debug] #4 000592dc in public inc_Ven_OnPlayerConnect (playerid=9) at D:\gamemode\pawno\include\OnPlayerPause.inc:106
[16:07:26] [debug] #5 000520bc in public MP_OPC (playerid=9) at D:\gamemode\pawno\include\vending.inc:564
[16:07:26] [debug] #6 native CallLocalFunction () from samp03svr
[16:07:26] [debug] #7 000406ac in public SSCANF_OnPlayerConnect (playerid=9) at D:\gamemode\pawno\include\mSelection.inc:432
[16:07:26] [debug] #8 000356d8 in public _y_utils_OnPlayerConnect (playerid=9) at D:\gamemode\pawno\include\sscanf2.inc:236
[16:07:26] [debug] #9 0000a10c in public AB_OnPlayerConnect (playerid=9) at D:\gamemode\pawno\include\YSI\..\YSI_Coding\..\YSI_Core\y_utils.inc:236
[16:07:26] [debug] #10 000010b0 in OnPlayerConnect (playerid=9, ... <1073741822 arguments>) at D:\gamemode\pawno\include\OPA.inc:104
[16:07:26] [debug] #11 0000b0e0 in public OnPlayerConnect (... <1 argument>) at D:\gamemode\pawno\include\YSI\..\YSI_Coding\..\YSI_Internal\y_cgen.inc:30
[16:07:26] [debug] Native backtrace:
[16:07:26] [debug] #0 b642ee8b in _ZN10StackTraceC1EPv () from plugins/crashdetect.so
[16:07:26] [debug] #1 b6427bcf in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so
[16:07:26] [debug] #2 b6428dbc in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
[16:07:26] [debug] #3 b6429226 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
[16:07:26] [debug] #4 b642eadc in ?? () from plugins/crashdetect.so
[16:07:26] [debug] #5 b771f600 in ?? ()
[16:07:26] [debug] #6 080d5a67 in ?? () from ./samp03svr
[16:07:26] [debug] #7 080d7a95 in ?? () from ./samp03svr
[16:07:26] [debug] #8 b645ab56 in ?? () from plugins/sscanf.so
[16:07:26] [debug] #9 080950e4 in ?? () from ./samp03svr
[16:07:26] [debug] #10 b642a94b in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[16:07:26] [debug] #11 b642d8f8 in ?? () from plugins/crashdetect.so
[16:07:26] [debug] #12 b6431916 in amx_Exec () from plugins/crashdetect.so
[16:07:26] [debug] #13 b6429be6 in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[16:07:26] [debug] #14 b642d659 in ?? () from plugins/crashdetect.so
[16:07:26] [debug] #15 b6076826 in ?? () from plugins/streamer.so
[16:07:26] [debug] #16 080dfd62 in ?? () from ./samp03svr
[16:07:26] [debug] #17 080950e4 in ?? () from ./samp03svr
[16:07:26] [debug] #18 b642a94b in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[16:07:26] [debug] #19 b642d8f8 in ?? () from plugins/crashdetect.so
[16:07:26] [debug] #20 b6431916 in amx_Exec () from plugins/crashdetect.so
[16:07:26] [debug] #21 b6429be6 in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[16:07:26] [debug] #22 b642d659 in ?? () from plugins/crashdetect.so
[16:07:26] [debug] #23 b6076826 in ?? () from plugins/streamer.so
[16:07:26] [debug] #24 080dfd62 in ?? () from ./samp03svr
[16:07:26] [debug] #25 080950e4 in ?? () from ./samp03svr
[16:07:26] [debug] #26 b642a94b in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[16:07:26] [debug] #27 b642d8f8 in ?? () from plugins/crashdetect.so
[16:07:26] [debug] #28 b6431916 in amx_Exec () from plugins/crashdetect.so
[16:07:26] [debug] #29 b6429be6 in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[16:07:26] [debug] #30 b642d659 in ?? () from plugins/crashdetect.so
[16:07:26] [debug] #31 b6076826 in ?? () from plugins/streamer.so
[16:07:26] [debug] #32 080a51c9 in ?? () from ./samp03svr
[16:07:26] [debug] #33 080d09ff in ?? () from ./samp03svr
[16:07:26] [debug] #34 080b5515 in ?? () from ./samp03svr
[16:07:26] [debug] #35 08071d38 in ?? () from ./samp03svr
[16:07:26] [debug] #36 08071e32 in ?? () from ./samp03svr
[16:07:26] [debug] #37 0807bc50 in ?? () from ./samp03svr
[16:07:26] [debug] #38 080aed3d in ?? () from ./samp03svr
[16:07:26] [debug] #39 080aef02 in ?? () from ./samp03svr
[16:07:26] [debug] #40 080aa13a in ?? () from ./samp03svr
[16:07:26] [debug] #41 b7443d26 in __libc_start_main () from /lib/libc.so.6
[16:07:26] [debug] #42 0804b4e1 in ?? () from ./samp03svr

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0
Acum 15 minute, Banditul a spus:

Care este linia  48376 mai exact?

cred ca asta: am recompilat gm-ul si am mai adaugat chestii si chiar numai stiu care era linia...dar asta mi se pare ca e

GetPlayerName(playerid, numeJucator, sizeof(numeJucator));
Edited by Rayan
Link to comment
Share on other sites

  • 0

Hmmm....

Ma gandesc ca SetPlayerName seteaza un nume invalid sau prea mare/mic fata de limitarile samp si cand se foloseste GetPlayerName cedeaza...Nu sunt singur

Pune niste printf in interioru if startdel si else si putin mai sus in interiorul if strfind.

La altceva nu ma pot gandi de ce ar crashui acolo

Link to comment
Share on other sites

  • 0
Acum 8 ore, Banditul a spus:

Hmmm....

Ma gandesc ca SetPlayerName seteaza un nume invalid sau prea mare/mic fata de limitarile samp si cand se foloseste GetPlayerName cedeaza...Nu sunt singur

Pune niste printf in interioru if startdel si else si putin mai sus in interiorul if strfind.

La altceva nu ma pot gandi de ce ar crashui acolo

ai dreptate, de la asta e, de exemplu am un clan inregistrat cu tag-ul [A] sunt 3 caractere care sunt minimile setate din samp default. e, daca ma conectez doar cu [A] si e un clan cu acest tag creat, server-ul primeste crash, deoarece incearca sa ii stearga tag-ul jucatorului fiind [A] il sterge si ramane cu niciun caracter in nickname.

Ar trebui sa fac o verificare ca dupa ce ii sterge numele sa verific daca strlen < 3 sa ii dea kick pentru motiv nume prea scurt?

 

edit; e ok daca pun asa? (conteaza daca e return 1 sau 0?)

if(startdel > 0)
            {
                new end = strlen(playername);
                strdel(playername, startdel, end);
				if(strlen(playername) < 3)
                {
                   SCM(playerid, -1, "Nickname prea scurt.");
                   Kick(playerid);
                   return 0;
                }
                SetPlayerName(playerid, playername);
                SetPVarInt(playerid, "with_clan_tag", 1);
            }
            else
            {
                strdel(playername, startdel, dellenght);
                if(strlen(playername) < 3)
                {
                   SCM(playerid, -1, "Nickname prea scurt.");
                   Kick(playerid);
                   return 0;
                }
                SetPlayerName(playerid, playername);
                SetPVarInt(playerid, "with_clan_tag", 1);
            }

 

Edited by Rayan
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.