View Single Post
02-24-15, 04:52 PM   #5
Tonyleila
A Molten Giant
 
Tonyleila's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 758
Thank everyone! Now I'm very confused thought I have tryed to mash some of the code snips from here together with no success.
Phanx code:
Code:
local ADDON_NAME = MindHarvest
if select(2, UnitClass("player")) ~= "PRIEST" then return DisableAddOn(ADDON_NAME) end
results in this error if I login on any char but a priest
Code:
1x MindHarvest\core.lua:5: Usage: DisableAddOn(index or "name", [set for all or "character"])
[C]: in function `DisableAddOn'
MindHarvest\core.lua:5: in main chunk

Locals:
ADDON_NAME = nil


And glyphe part.. I just don't know where to start it looks nice but its not working
__________________
Author of: LeilaUI and Aurora: Missing Textures
__________________

Last edited by Tonyleila : 02-24-15 at 04:56 PM.
  Reply With Quote