View Single Post
03/14/24, 02:09 PM   #4
Saint-Ange
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 10
Originally Posted by Dolgubon View Post
First, you'll want to look at the error. What line does it say, and what code is on that line? That's always critical information for figuring out errors. Second, what does function expected instead of nil mean? Well, it means that on that line of code, you have functionName(), but functionName is actually nil. So make sure the function is actually declared.


Finally, you need to either make your functions local, or pop them in your addon table. They are currently global, so if anyone addon declares a global Initialize function (pretty likely tbh) it'll overwrite yours
That's exactly what happened, my addon overwrote an other one wich lost its saved variable, glad I had a save. Thank you very much
  Reply With Quote