ShowPlayerDialog Server closed the connection upon "ESC"..
#4

Quote:
Originally Posted by DanishHaq
Посмотреть сообщение
pawn Код:
if(dialogid == 2580)
    {
        if(!response)
        {
            ShowPlayerDialog(playerid,-1,DIALOG_STYLE_MSGBOX, "Caption", "Info", "Button1", "Button2");
        }
        if(response)
        {
            ShowPlayerDialog(playerid,-1,DIALOG_STYLE_MSGBOX, "Caption", "Info", "Button1", "Button2");
        }
    }
Showing a dialog with the ID of -1 just closes all open dialogs. It could be triggering something inside of the SA:MP client that causes them to be kicked, I've seen that happen before, and I believe there was some anti dialog hacking code implemented last release. I'd recommend just taking out the -1, if they hit the other button (or esc in this case), the dialog is already closed, so there's no worries.
Reply


Messages In This Thread
ShowPlayerDialog Server closed the connection upon "ESC".. - by DanishHaq - 04.08.2013, 14:59
Re: ShowPlayerDialog Server closed the connection upon "ESC".. - by 2KY - 04.08.2013, 15:02
Re: ShowPlayerDialog Server closed the connection upon "ESC".. - by DanishHaq - 04.08.2013, 15:03
Re: ShowPlayerDialog Server closed the connection upon "ESC".. - by 2KY - 04.08.2013, 15:05
Re: ShowPlayerDialog Server closed the connection upon "ESC".. - by DanishHaq - 04.08.2013, 15:12

Forum Jump:


Users browsing this thread: 1 Guest(s)