Yes, don't assume =) because this:
PHP Code:
while( ( iButton = find_ent_by_class( iButton, "func_button" ) != 0 ) )
it will be ALWAYS true, because what it checks is if iButton = find_ent_by_class() is not 0, and it does not matter what find_ent_by_class() returns because it checks if the assignment worked, and always does, therefore, infinite loop
the above mistake in less code:
PHP Code:
while(var = 0 != 0)
the "var = 0" can be anything that returns true, if you want the result of it, you just:
PHP Code:
while((var = 0) != 0)
and the loop will stop, because var is 0 and results false for the loop
__________________