dialog? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: dialog? (
/showthread.php?tid=595467)
dialog? -
N0FeaR - 03.12.2015
Is it possible to dialogs can be defined inside the enumerator?
Re: dialog? - Patrick - 03.12.2015
Yes. I suggest you use enum because you don't have to number them 1 by 1, itself does it whereas macros/definition you have to add values next to it so the dialogs won't conflict.
pawn Код:
enum
{
DIALOG_ONE,
DIALOG_TWO,
DIALOG_THREE
DIALOG_AND_SO_ON
}
pawn Код:
#define DIALOG_ONE (0)
#define DIALOG_TWO (1)
#define DIALOG_THREE (2)
#define DIALOG_AND_SO_ON (3)
Re: dialog? -
N0FeaR - 03.12.2015
Quote:
Originally Posted by Patrick
Yes. I suggest you use enum because you don't have to number them 1 by 1, itself does it whereas macros/definition you have to add values next to it so the dialogs won't conflict.
pawn Код:
enum { DIALOG_ONE, DIALOG_TWO, DIALOG_THREE DIALOG_AND_SO_ON }
pawn Код:
#define DIALOG_ONE (0) #define DIALOG_TWO (1) #define DIALOG_THREE (2) #define DIALOG_AND_SO_ON (3)
|
Okey, thank you for a quick answer!