SA-MP Forums Archive
Server Crashing - by someone pls help - 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: Server Crashing - by someone pls help (/showthread.php?tid=590264)



Server Crashing - by someone pls help - TheLegend1 - 27.09.2015

Hey guys,
im having a problem there is a guy which can crash my server.
but i dont know how and what he did - he doesnt have my hoster pass or whatever you think,he was my old friend but now a hatter of me xD,pls help me out - Script doesnt have any error - its all ok, i forced the guy to recrash my server while i had added crashdetect and now i have logos, pls help me .

Crashdetect logs

Код HTML:
[13:49:26] [debug] Native backtrace: 
[13:49:26] [debug] #0 0049dc0c in ?? () from samp-server.exe 
[13:49:26] [debug] Server crashed while executing GM.amx 
[13:49:26] [debug] AMX backtrace: 
[13:49:26] [debug] #0 native SendClientMessage () [00471750] from samp-server.exe 
[13:49:26] [debug] #1 00087ef0 in ?? (0x41a00000, 0x00000000, 0x00b0f600, 0xb4b5b7ff, 0xb4b5b7ff, 0xb4b5b7ff, 0xb4b5b7ff, 0xb4b5b7ff) from GM.amx 
[13:49:26] [debug] #2 000307d8 in public OnDialogResponse (0x00000000, 0x00000005, 0x00000001, 0xffffffff, 0x00b0ba40) from GM.amx 
[13:49:26] [debug] Native backtrace: 
[13:49:26] [debug] #0 7770dfd4 in ?? () from C:\Windows\SysWOW64\ntdll.dll 
[13:49:26] [debug] #1 769c14ad in ?? () from C:\Windows\syswow64\kernel32.dll 
[13:49:26] [debug] #2 00498e11 in ?? () from samp-server.exe 
[13:49:26] [debug] #3 0044d9c9 in ?? () from samp-server.exe 
[13:49:26] [debug] #4 0045856c in ?? () from samp-server.exe 
[13:49:26] [debug] #5 0045ad2a in ?? () from samp-server.exe 
[13:49:26] [debug] #6 100016df in ?? () from plugins\mysql.dll 
[13:49:26] [debug] #7 100081b2 in ?? () from plugins\mysql.dll 
[13:49:26] [debug] #8 0048d4db in ?? () from samp-server.exe 
[13:49:26] [debug] #9 5c8b01f8 in ?? () from samp-server.exe 
[13:49:26] [debug] #10 61750824 in ?? () from samp-server.exe



Re: Server Crashing - by someone pls help - Jefff - 27.09.2015

You need check inputtext


Re: Server Crashing - by someone pls help - TheLegend1 - 27.09.2015

where in a cmd or everywhere it is wroten ? pls help


Re: Server Crashing - by someone pls help - Jefff - 27.09.2015

On top OnDialogResponse, check if inputtext contains %


Re: Server Crashing - by someone pls help - TheLegend1 - 27.09.2015

this is ondialogresponse on my gm

Quote:

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{




Re: Server Crashing - by someone pls help - Jefff - 27.09.2015

Yes and under it you must add small anti prevent server crash by n00bs because kalcor cant do it i dont know why...


Re: Server Crashing - by someone pls help - TheLegend1 - 27.09.2015

can u gimme an example or help me out i dont get you :P


Re: Server Crashing - by someone pls help - Jefff - 27.09.2015

Add this somewhere in defines on top
pawn Код:
#define InputTextFilter(%0) \
    for(new i = strlen(%0)-1; i > -1; i--) \
        if(%0[i] == '%') \
            %0[i] = '#'
and on top public OnDialogResponse
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    InputTextFilter(inputtext);

    // your code
    return 1;
}



Re: Server Crashing - by someone pls help - TheLegend1 - 27.09.2015

ur script has no errors , gonna try 2morow if he will recrash it or it works anyway thanks alot (rept)


Re: Server Crashing - by someone pls help - Jefff - 27.09.2015

You can create a log for checking who wants crash your server ;p