View Single Post
05-11-14, 12:35 AM   #17
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Originally Posted by Billtopia View Post
I found your issue... the event handler you set up is wrong. it is supposed to be passed SELF, EVENT, ... you are, it seems, passing it nothing. no self, no event, and no ...
You're at least the second person to post that, and like the others before you, you're wrong. He is passing the self in -- that's what method notation (colon) does.

However, I've been avoiding this thread because OP's code is obviously borrowing from some old and really badly written examples that I'd really rather swallow live spiders than work with, but since OP didn't post the entire addon and the file they posted makes multiple references to functions and other things that are (I assume) in other files, I can't just rewrite it for them.
__________________
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