23.04.2013, 11:08
Quote:
But seriously, enums are way more neat and organized. Sometimes I only create an enum for 1 or 2 variables, haha.
|
EG,
pawn Код:
enum E_SOME_ENUM
{
e_SOME_VAR,
e_SOME_OTHER_VAR,
bool: e_SOME_BOOL_VAR
}
new SomeVar[E_SOME_ENUM]
EDIT: I know this doesn't actually make the code more manageable, but for some reason i prefer using enums than several vars. If this is bad practice I'd love to know, so i can alter my code accordingly (if needed)