03.11.2012, 18:39
Quote:
Those arrays do not have the same names, other one is Boxing and other one is Bomb.
If you did it the other way, it'd be: pawn Код:
|
It was just an example anyway. I just wanted to show that you can have 2 variables (actually constants) with same names.
pawn Код:
enum eBoxing
{
bTime = 2
};
enum eBomb
{
bTime = 3
};
pawn Код:
printf("%d", bTime);
Код:
error 091: ambiguous constant; tag override is required
pawn Код:
printf("%d", eBoxing:bTime);
printf("%d", eBomb:bTime);
Код:
2 3