Crashing - 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: Crashing (
/showthread.php?tid=422055)
Crashing -
Fernado Samuel - 12.03.2013
Removed
Re: Crashing -
Denying - 12.03.2013
Can we see your OnDialogResponse callback?
Re: Crashing -
Fernado Samuel - 12.03.2013
Removed
Re: Crashing -
Fernado Samuel - 12.03.2013
Removed, thanks for the help!
Re: Crashing -
Yves - 12.03.2013
Show us your OnDialogRespons
Re: Crashing -
Fernado Samuel - 12.03.2013
Removed
Re: Crashing - Patrick - 12.03.2013
I'm not sure if its a spam bot. try to ban that IpAdress
or try to make a Anti-IP Bot for it.
Re: Crashing -
Threshold - 12.03.2013
Not sure, but try adding this to your OnDialogResponse...
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(PlayerInfo[playerid][LoggedIn] != 1)
{
if(dialogid != DIALOGID0+1 && dialogid != DIALOGID0+2) return SendClientMessage(playerid, 0xFF0000FF, "You must be logged in to access this dialog.");
}
//code continues...
Just make sure this is before any other dialogs are called. That way, the player must be logged in to use dialogs and will provide at least SOME protection against these attacks.
Re: Crashing -
Fernado Samuel - 12.03.2013
Removed, thanks for the help!
Re: Crashing - Patrick - 12.03.2013
Try to add those as he gave you that code.