SA-MP Forums Archive
[Critical] Server Crash Bug - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: Bug Reports (https://sampforum.blast.hk/forumdisplay.php?fid=20)
+--- Thread: [Critical] Server Crash Bug (/showthread.php?tid=272463)



[Critical] Server Crash Bug - jh931223 - 28.07.2011

when some player type unknown command( this is just my expectation )
server is crashed.
i presume there is some critical samp basic command ( it is not recorded in log, samp basic command is not recorded in log )
when server crashed using crashdetect plugin, an error message recorded 'The server has crashed due to an unexpected error.'
i thing it is not fault of gamemode


Re: [Critical] Server Crash Bug - ][Noname][ - 28.07.2011

Код:
OnplayerCommandtext(playerid,cmdtext[])
add this code
Код:
printf("OnplayerCommandtext playerid %d cmdtext %s",playerid,cmdtext)
Код:
OnDialogresponse
add this
Код:
printf("OnDialogresponse playerid %d response %d listitem %s inputtext %s ",playerid,response,listitem,inputtext);
for full debug
then after crash see logs


Re: [Critical] Server Crash Bug - jh931223 - 28.07.2011

I already did it but it was not recorded in server log


Re: [Critical] Server Crash Bug - leong124 - 29.07.2011

Check if you're using strins with arrays/strings with unknown size.
Example:
pawn Код:
public OnPlayerCommandText(playerid,cmdtext[])
{
    strins(cmdtext,......);
    return 1;
}



Re: [Critical] Server Crash Bug - jh931223 - 29.07.2011

Quote:
Originally Posted by leong124
Посмотреть сообщение
Check if you're using strins with arrays/strings with unknown size.
i think this problem is not my mode error, i've heard similar situation occred in other server ( admins of that server agreed to change there server law which server crasher suggests. but that crasher did not tell how he crash the server ).
Is there any way to appear basic command of SA-MP to server log?


Re: [Critical] Server Crash Bug - lpiob - 29.07.2011

Can you reproduce this bug?
Have you updated to R5? There is a known exploit to crash older servers.