06.10.2011, 14:31
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?
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?