24.05.2014, 22:47
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:
Replace dialogid with the name.
If you use a number, just replace dialogid with the number you want.
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
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", "");
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