Is there any way to access an enum by index?
#4

Yes. Example:
PHP Code:
enum ENUM_NAME
{
    
3,
    
Float:5.2,
    
bool:false
}
ENUM_NAME:0
ENUM_NAME:1
ENUM_NAME:2
for(new 0ENUM_NAME:ENUM_NAMEi++)
    
printf("#%d - %d"iENUM_NAME:i); // prints the INDEX 
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)