Checking if enum is not used
#1

How can I check if the enum variables are empty? I have a house system and I want to place the new house in the closest empty (unused) variable.

ie:

enum test
{
ID,
something
}

and if I have a loop, how to check if the lets say, ID variable empty?

for(new i=0; i<5;i++)
{
if(ID = )
....
}

I cant use 0 cause it is also used as an ID in my script and it is not defined at the start. How to check if it is empty?
Reply


Messages In This Thread
Checking if enum is not used - by Outcast - 06.10.2011, 14:31
Re: Checking if enum is not used - by iJumbo - 06.10.2011, 14:52
Re: Checking if enum is not used - by Outcast - 11.10.2011, 11:21

Forum Jump:


Users browsing this thread: 2 Guest(s)