For instance, you want to define a set of constants belonging to the same group. You could do it this way:
PHP Code:
// Weapon constants:
#define WEAPON_KNIFE 10
#define WEAPON_DEAGLE 20
#define WEAPON_AK47 30
#define WEAPON_AWP 40
#define WEAPON_FLASH 50
or you could use enum:
PHP Code:
enum (+=10)
{
WEAPON_KNIFE = 10,
WEAPON_DEAGLE, // will be equal to 20
WEAPON_AK47, // will be equal to 30
WEAPON_AWP, // ... and so on
WEAPON_FLASH // ...
}