Posts: 725
Threads: 4
Joined: Nov 2010
Reputation:
0
I don't know what takes less/more memory, but in my opinion, enum is much more easier to work with because all of you variables in one variable which enum controls it. That's what I think, at least.
Posts: 541
Threads: 60
Joined: Jul 2009
Reputation:
0
Okay, I used to use normal variables and I am fine with them, but I think I have somewhere read that enums take less memory, what isn't logical unless it is a pointer. So I am asking is it worth to learn about enums since I am satisfied with normal Vars
Posts: 2,421
Threads: 52
Joined: Mar 2009
Reputation:
0
Enums are often better to use (than an array) because you can have different types like float or arrays. (yes i know PAWN is typless but you know what i mean). If your data is all one type use arrays/vars, if not use arrays of enums.
Posts: 2,421
Threads: 52
Joined: Mar 2009
Reputation:
0
PAWN uses cells only, so the size will be the same as its counterpart. Arrays of enums (IMO) are a lot easier to work with than several different variables. Like someone said before use what you prefer.