What is better to define dialog ids? - 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: What is better to define dialog ids? (
/showthread.php?tid=563076)
What is better to define dialog ids? -
UploaD - 13.02.2015
Hello there i was wondering what is better to define dialog ids..
#1
pawn Код:
enum Dialog_IDS
{
Dialog_Login
Dialog_Register
Dialog_Name
}
#2
pawn Код:
#define Dialog_One 1
#define Dialog_Two Dialog_One+1
#define Dialog_Three Dialog_One+2
AW: What is better to define dialog ids? -
Mellnik - 13.02.2015
Actually you can answer that question yourself. The first one allows you to change any entries without breaking others.
Re: What is better to define dialog ids? -
TuNiSiAnO1 - 13.02.2015
For me, #2