View Single Post
03-03-13, 09:34 AM   #12
Mayron
A Frostmaul Preserver
 
Mayron's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2010
Posts: 275
Thank you for that very interesting info and for taking the time to look at my .lua file. I was actually expecting there to be much worse errors in it since its the first big lua project I've ever worked on. I've definitely learnt a lot and will correct those errors.

Also in your "frame:SetScript("OnEvent", function(self, event, ...)" part of the script, the "frame" comes up as a nil variable when I run it in wow. Is that because I am meant to rename the "frame" to any other frame that preferably is not already using an OnEvent script and which is always showing such as the "block" frame that does not disappear until the very end? Either that or some how defining "frame" as an actual variable then.


Edit: It is also saying that this line:

Code:
if _G[addon].db:GetCurrentProfile() == "MayronUI" then
that "db" is a nil value with a lua error for some reason

Last edited by Mayron : 03-03-13 at 12:00 PM.
  Reply With Quote