• 0

    posted a message on Packager Problem
    Thanks. Project is SurgeonGeneral, there should be and alpha build and beta tag from last night.
    Posted in: General Chat
  • 0

    posted a message on Packager Problem
    Did the packager have a problem? I noticed that it didn't build some stuff from last night, but it doesn't show anything as pending.
    Posted in: General Chat
  • 0

    posted a message on Need Help with function/method
    I'd like to preface my question with the information that I'm new to writing in LUA. With that out of the way....

    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.

    Posted in: Lua Code Discussion
  • To post a comment, please or register a new account.