11.07.2011, 20:11
Yes. Example:
PHP Code:
enum ENUM_NAME
{
X = 3,
Float:Y = 5.2,
bool:B = false
}
X - ENUM_NAME:0
Y - ENUM_NAME:1
B - ENUM_NAME:2
for(new i = 0; ENUM_NAME:i < ENUM_NAME; i++)
printf("#%d - %d", i, ENUM_NAME:i); // prints the INDEX