Dialog
#1

Hello!
There is any way to close a dialog? or...?
I want to show a dialog to a player and if he won't response in 30 seconds,to close it.
Or should I show him another dialog?
Reply
#2

I found this function. Haven't tested it but if you really need it then test it and see if it works.

pawn Код:
stock HideDialog(playerid)
    return ShowPlayerDialog(playerid, -1, 0, " ", " ", " ", " "), 1;
EDIT:

I found this on wiki page:

Код:
Note: Using -1 as dialogid closes all dialogs currently shown on the client's screen.
so it should work
Reply
#3

I found this ShowPlayerDialog(playerid, -200, DIALOG_STYLE_MSGBOX, "Bye dialog", "Bye", "Bye", ""); its used on dialog id 200, but we are making it negative because that should hide the dialog. Dunno if it works, but you can make a timer do this after 30 sec have passed. Dunno if this negative thing will work, but you can try it out

So.. If the dialog id you want to hide is 50 use it like this:

ShowPlayerDialog(playerid, -50, DIALOG_STYLE_MSGBOX, "Bye dialog", "Bye", "Bye", "");
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)