Adding command to start dialog:
#7

When you make a dialog you can either give it a name or a number(dialogid).

If you give it a name you'll have to define it ontop of your script with this:

pawn Код:
#define DIALOG_NAME 1777 //The name in this case is DIALOG_NAME and the dialogid is 1777 both can be changed
pawn Код:
ShowPlayerDialog(playerid, DIALOG_NAME, DIALOG_STYLE_MSGBOX, "Hi", "Look at your dialog", "Close", "");
Replace dialogid with the name.

If you use a number, just replace dialogid with the number you want.

pawn Код:
ShowPlayerDialog(playerid, 1777, DIALOG_STYLE_MSGBOX, "Hi", "Look at your dialog", "Close", "");

I recommend you to read these wiki pages about dialogs.
https://sampwiki.blast.hk/wiki/ShowPlayerDialog
https://sampwiki.blast.hk/wiki/OnDialogResponse
https://sampwiki.blast.hk/wiki/Dialog_Styles
Reply


Messages In This Thread
Adding command to start dialog: - by Bek_Loking - 24.05.2014, 21:29
Re: Adding command to start dialog: - by eXeDev - 24.05.2014, 22:13
Re: Adding command to start dialog: - by Bek_Loking - 24.05.2014, 22:13
Re: Adding command to start dialog: - by Matess - 24.05.2014, 22:17
Re: Adding command to start dialog: - by eXeDev - 24.05.2014, 22:18
Re: Adding command to start dialog: - by Bek_Loking - 24.05.2014, 22:42
Re: Adding command to start dialog: - by AndySedeyn - 24.05.2014, 22:47
Re: Adding command to start dialog: - by eXeDev - 24.05.2014, 22:48
Re: Adding command to start dialog: - by SickAttack - 24.05.2014, 22:50
! - by Bek_Loking - 24.05.2014, 23:01

Forum Jump:


Users browsing this thread: 2 Guest(s)