Dialogbox[BUTTONS] REP ++
#3

If you just want to close the dialog box after pressing that button or pressing Esc, then don't write anything for that dialog in OnDialogResponse.

PHP код:
native ShowPlayerDialog(playeriddialogidstylecaption[], info[], button1[], button2[]); 
https://sampwiki.blast.hk/wiki/ShowPlayerDialog

If you leave the button2 parameter as "", there will be only one button. So, you can write the button1 as "Close" and there will be only one button called "Close" will be shown.

Here's an example:
PHP код:
ShowPlayerDialog(playerid123DIALOG_STYLE_LIST"Hello""Hi,\nHow are you?""Close"""); 
Reply


Messages In This Thread
Dialogbox[BUTTONS] REP ++ - by NviDa - 16.04.2015, 13:59
Re: Dialogbox[BUTTONS] REP ++ - by RoboN1X - 16.04.2015, 14:09
Re: Dialogbox[BUTTONS] REP ++ - by ATGOggy - 16.04.2015, 14:12
Re: Dialogbox[BUTTONS] REP ++ - by NviDa - 16.04.2015, 14:20
Re: Dialogbox[BUTTONS] REP ++ - by ATGOggy - 16.04.2015, 14:31
Re: Dialogbox[BUTTONS] REP ++ - by NviDa - 16.04.2015, 14:37
Re: Dialogbox[BUTTONS] REP ++ - by SickAttack - 16.04.2015, 14:54
Re: Dialogbox[BUTTONS] REP ++ - by NoDi522 - 16.04.2015, 14:55
Re: Dialogbox[BUTTONS] REP ++ - by NviDa - 16.04.2015, 15:05
Re: Dialogbox[BUTTONS] REP ++ - by ATGOggy - 16.04.2015, 15:07

Forum Jump:


Users browsing this thread: 1 Guest(s)