11.07.2011, 20:01
The lack of the possibility to loop through enums drives me crazy.
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
enum PickupList { Dealership, Rental } PickupList - Dealership:0 PickupList - Rental:1
error 010: invalid function or declaration |