Why we use var for enums?
#3

An enum is as its name suggest nothing more than an enumeration. It is not an array. It is in fact very similar to doing this:
pawn Код:
#define Playermoney (0)
#define Playeradmin (1)
Although obviously much clearer and much easier to maintain.
Reply


Messages In This Thread
Why we use var for enums? - by Arxalan - 31.01.2015, 14:09
Re: Why we use var for enums? - by CalvinC - 31.01.2015, 14:13
Re: Why we use var for enums? - by Vince - 31.01.2015, 14:15

Forum Jump:


Users browsing this thread: 2 Guest(s)