Quote:
Originally Posted by Crow
Are you checking if the GUI control exists before destroying it?
|
Yeah I just got it working =P
It didnt work like i thought it would though. Basically every time a gui is created, it adds +1 to a variable. but BEFORE all of that, it used to check if the variable was greater than 1, then delete a gui. like if the variable came back as 5, it would delete the first 5 guis. and then after that for loop, it would set the value to 0 and continue.
weird thing is, it didnt work unless i changed the "> 0" to "== 0". so basically seeing if that variable equals zero. even though it's returning a greater value.
i also ran into a weird problem. sometimes variables dont work if theyre temp.variablename and will only work if theyre this.variablename (yes theyre in the same function. and renaming the name of the variable doesnt change the outcome)
yet in this case, my variable was named this.iconnumbers but it wouldnt work until i changed it to temp.iconnumbers