Closing 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: Closing Dialogs? (
/showthread.php?tid=421214)
Closing Dialogs? -
megamind2067 - 08.03.2013
How do I close a dialog without selecting an option?
Re: Closing Dialogs? -
DaRk_RaiN - 08.03.2013
Use esc botton?
You could also leave the botton1 and botton2 empty in the ShowPlayerDialog or just leave one botton and name it (close)
pawn Код:
ShowPlayerDialog(playerid,454,DIALOG_STYLE_MSGBOX,"dialog","Welcome to the server","Close","");
Re: Closing Dialogs? -
park4bmx - 08.03.2013
simply, negative id should close it.
pawn Код:
ShowPlayerDialog(playerid,-2,DIALOG_STYLE_MSGBOX,"","","","");