View Single Post
08-02-14, 10:56 PM   #29
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Originally Posted by Kygo View Post
The "BUFF_HEIGHT" is giving a nil value error. The whole error is here > http://pastebin.com/Hmfre6RX (its to long to post here)
Originally Posted by Sjak View Post
BUFF_HEIGHT is giving a nil value because it's defined as a local in the spawn function so it won't be accessible inside of other functions. If you move it out of the spawn function to the top of the file then it should work fine.
Yes, this. I wrote it all in one file and then copy/pasted the blocks into my post... missed that bit in the first block, apparently.

Originally Posted by Kygo View Post
Had to swap out your "self" into frame because I don't have "self" defined anywhere.
Originally Posted by Sjak View Post
"Self" doesn't need to be defined because it's a parameter of the function. I'm not great at explaining things so it's probably best just to read this to understand why you use "self".
No, it does actually need to be "frame" here, as his code is using that instead of the more traditional "self" in that parcitular context.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote