Checking if enum is not used

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.


enum test

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?

IsNull ?

Originally Posted by ******
Посмотреть сообщение
If you can't use 0 then you need to figure out another number that you can use and do that instead. You will also need to initialise the whole of the array to that value to begin with.
That's what I thought about too. I think I'll use that. But, is the IsNull good to use or not?

Forum Jump:

Users browsing this thread: 1 Guest(s)