Quote:
Originally Posted by Sammy-ROCK!
Why not bit flags?
Code:
#define Unlock1 (1<<0) //1
#define Unlock2 (1<<1) //2
#define Unlock3 (1<<2) //4
new flags = 0;
flags |= Unlock1; //Adds Unlock1 flag
flags &= ~Unlock1; //Removes Unlock1 flag
new bool:HasUnlock1 = flags & Unlock1;
This way you have a simple interger and the limit is 32 (1<<31) and if you need more you can always make a 2nd integer.
|
Because I wanna support more than 200 unlocks, and I don't know how much I'll need to support, so I can't rely on it.
Also, unlocks aren't based on an exp level, the user chooses which one he wants to buy, he can buy more than one.
I am inclined to use the simple text parsing