/server dialog help, [SIMPLE]
#6

You need to enter a dialogid. It requires a integer such as 1,2,87 etc.

Example you're using this.

pawn Код:
ShowPlayerDialog(playerid, 4, DIALOG_STYLE_MSGBOX, "Hello", "This is a Dialog.", "OK", "");
In this code your dialogid 4 is the msgbox. If you want to do something with OnDialogResponse you need to enter this 4 for MSGBOX, when the player press OK.

pawn Код:
if(dialogid == 4)
But there is a easy way to keep the ID's on your mind. In fact definition of Dialog IDs.

pawn Код:
#define DIALOG_MSG 4
Now you can use this definition instead of 4.

Example.

pawn Код:
if(dialogid == DIALOG_MSG)
Reply


Messages In This Thread
/server dialog help, [SIMPLE] - by PabloDiCostanzo - 22.09.2013, 15:24
Re: /server dialog help, [SIMPLE] - by tyler12 - 22.09.2013, 15:25
Re: /server dialog help, [SIMPLE] - by EiresJason - 22.09.2013, 15:31
Respuesta: /server dialog help, [SIMPLE] - by PabloDiCostanzo - 22.09.2013, 15:35
Re: /server dialog help, [SIMPLE] - by EiresJason - 22.09.2013, 15:37
AW: /server dialog help, [SIMPLE] - by Skimmer - 22.09.2013, 16:19
Respuesta: /server dialog help, [SIMPLE] - by PabloDiCostanzo - 23.09.2013, 19:21
Re: /server dialog help, [SIMPLE] - by EiresJason - 23.09.2013, 19:32
Respuesta: /server dialog help, [SIMPLE] - by PabloDiCostanzo - 23.09.2013, 20:37
Re: /server dialog help, [SIMPLE] - by EiresJason - 23.09.2013, 20:40

Forum Jump:


Users browsing this thread: 1 Guest(s)