which is better - 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: which is better (
/showthread.php?tid=634429)
which is better -
TYDS - 19.05.2017
#define DIALOG_TEST 0
.......
or
enum
{
DIALOG_TEST
}
Re: which is better -
Vince - 19.05.2017
Just use the enum. Don't even bother comparing speeds because the difference will probably only be noticeable after a million iterations, if at all.
Re: which is better -
CheezIt - 19.05.2017
Neither. You should use '#define's if you'd like no character limit for the elements' name. If that limit doesn't bother you however, then the enum would be your perfect choice (you won't need to manually define their values).
Re: which is better -
Yousha - 19.05.2017
Usually dialogs are sorted...
Enum is better.