View Single Post
02-16-15, 01:43 PM   #5
Kraiven
A Deviate Faerie Dragon
 
Kraiven's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2015
Posts: 10
Got it working

Thanks for the help. After an all day attempt to get the functions to work right I was finally able to get my results. One more question, is there a way to get the "currentSpecName" to show up in a pop up message window? I got it to work under print(blah blah), but not in the message(blah blah).

Code:
if role ~= specRole then
	playSound()
	message("|cffFF4500You are in the wrong Specialization!|r \n \n |cffffff00Change your Current Specialization before Combat!")
	print("|cff00ccffYour current Specialization:|r", currentSpecName)
end
if role == specRole then
	print("|cff00ccffYour current Specialization:|r", currentSpecName)
end


Edit: I added a little comment to my addon thanking all of you. If you would like me to leave you out just let me know. Thank you all again.

Last edited by Kraiven : 02-16-15 at 02:53 PM.
  Reply With Quote