/cmds in dialogbox
#8

The dialog ID.
Each dialog has it's own dialogid, to be used in OnDialogResponse where you can script different functions for different dialog ID's.
Basically some people use
pawn Код:
#define DIALOG_CMDS 1
Which makes
pawn Код:
ShowPlayerDialog(playerid, 1, ...);
The same as doing
pawn Код:
ShowPlayerDialog(playerid, DIALOG_CMDS, ...);
Which is more organised, and less confusing.
However using an enumerator is even less confusing, as it applies the ID's(numbers) automatically.
Reply


Messages In This Thread
/cmds in dialogbox - by NviDa - 30.03.2015, 17:48
Re: /cmds in dialogbox - by CalvinC - 30.03.2015, 17:52
Re: /cmds in dialogbox - by NviDa - 30.03.2015, 17:57
Re : /cmds in dialogbox - by Wassimo - 30.03.2015, 17:58
Re: /cmds in dialogbox - by CalvinC - 30.03.2015, 18:09
Re: /cmds in dialogbox - by NviDa - 30.03.2015, 18:12
Re: /cmds in dialogbox - by NoDi522 - 30.03.2015, 18:20
Re: /cmds in dialogbox - by CalvinC - 30.03.2015, 18:34

Forum Jump:


Users browsing this thread: 2 Guest(s)