View Single Post
05-09-14, 10:13 AM   #13
Lombra
A Molten Giant
 
Lombra's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 554
Make sure you enable Lua errors, but also your OnEvent signature was correct since colon syntax is used. You'll still want to make sure that it was your addon that loaded, though.
Code:
function lf:OnEvent(event, ...)
	if (event == "ADDON_LOADED") then
		if (... == "LCI") then -- needs to be same as your addon folder and ToC file name
			CheckNewChar()
		end
	end
end
print is your best friend in troubleshooting. Add it in functions that are meant to be executed to see where execution goes wrong and, if necessary, whether relevant variables have the expected values.
__________________
Grab your sword and fight the Horde!
  Reply With Quote