- Registered User
Member for 14 years, 9 months, and 2 days
Last active Fri, Oct, 4 2013 21:30:13
- 0 Followers
- 113 Total Posts
- 0 Thanks
Sep 26, 2008I'd like to preface my question with the information that I'm new to writing in LUA. With that out of the way....Posted in: Lua Code Discussion
I'm having a problem with an addon that I'm working on where I can't seem to get one method to call another method. For example, this works:
function MyAddon:StartSomething() DoSomething(something); end function DoSomething(something) --Stuff goes here end
But this does not:
function MyAddon:StartSomething() MyAddon:DoSomething(something); end function MyAddon:DoSomething(something) --Stuff goes here end
I get an error message "Attempt to call method 'DoSomething' (a nil value)" and I just don't really understand what's going on. I've also tried calling "self:DoSomething(something)" and get the same result. Any help would be greatly appreciated.
- To post a comment, please login or register a new account.