Thread: Error
View Single Post
09-20-10, 02:05 AM   #3
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 784
Originally Posted by v6o View Post
You say they "disappear", do you mean just the portraits or the whole unit frame..?

If the whole unit disappears it could be because you forgot to end the if after your portrait section

If you only mean the portrait then that's intended "if (Portrait) then" means if Portrait has a value or is true. When you set Portrait to false or nil the code inside won't run.
Everything "disappear" I only want the portraits to disapper..

when i do local Portraits = false

And it doesnt really mather what you write " if(Portraits) then " or
if(Portrait) then "
  Reply With Quote