SA-MP Forums Archive
Dialogs... - 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: Dialogs... (/showthread.php?tid=543647)



Dialogs... - mkmk - 28.10.2014

I've tried on three occasions now with dialogs, but when I make them and afterwards press close or confirm (something like that), the server just says "Server Closed Connection"

Rep if you help me.


Re: Dialogs... - Chrillzen - 28.10.2014

Code?


Re: Dialogs... - mkmk - 28.10.2014

Quote:
Originally Posted by Chrillzen
Посмотреть сообщение
Code?
It's with every dialog.


Re: Dialogs... - Threshold - 28.10.2014

Quote:
Originally Posted by mkmk
Посмотреть сообщение
It's with every dialog.
Code?


Re: Dialogs... - mkmk - 28.10.2014

Made this to show you guys - this didn't work btw, it just said "Server Closed Connection" every time I clicked close.

pawn Код:
CMD:test(playerid, params[])
{
        ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Testing", "Testing\nAnd again!\nAnd again!", "Close");
}



Re: Dialogs... - Banana_Ghost - 28.10.2014

Okay, may we see the code for:
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    //dialog response stuff
    return 0;
}



Re: Dialogs... - mkmk - 28.10.2014

Quote:
Originally Posted by Banana_Ghost
Посмотреть сообщение
Okay, may we see the code for:
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    //dialog response stuff
    return 0;
}
Uhm... I literately just made that code lol (hence why I haven't made that yet). - also, I don't need a dialog response for what I was doing.


Re: Dialogs... - Threshold - 28.10.2014

Well add it and return 0.

Also make sure there are no filterscripts affecting this with conflicting dialog ids or something.

pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    return 0;
}



Re: Dialogs... - mkmk - 28.10.2014

Quote:
Originally Posted by Threshold
Посмотреть сообщение
Well add it and return 0.

Also make sure there are no filterscripts affecting this with conflicting dialog ids or something.

pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    return 0;
}
How would I check if they were? I have one filter script (a house system)


Re: Dialogs... - De4dpOol - 28.10.2014

ShowPlayerDialog(playerid, dialogid, style, caption[], info[], button1[], button2[]) Make sure that the dialogid here is not same in 2 dialogs and OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) returns 0 both in FS and in GM.