View Single Post
07-03-18, 12:18 AM   #15
McRoell
A Defias Bandit
Join Date: Jul 2018
Posts: 2
Sorry for pulling this thread out of hibernation, but I've encountered a problem with that "frame:SetScript" part(I guess) I'm not able to solve.

Originally Posted by Phanx View Post
Code:
local frame = CreateFrame("GameTooltip", "MyPrivateStuff_QuestInfoTooltipFrame", UIParent, "GameTooltipTemplate")

frame:SetScript("OnTooltipSetQuest", function(self)
	if not self.message then return end
	local title = MyPrivateStuff_QuestInfoTooltipFrameTextLeft1:GetText()
	self:Hide()
	DEFAULT_CHAT_FRAME:AddMessage(format(self.message, self.linkID, title))
	self.message, self.linkID = nil, nil
end
I've used the complete code provided by Phanx 1:1 into my LUA-Script. Every time on Login (or Reload) I receive an Error regarding a missing ")" for closing purpose - details below.

As far as I (as a newbie) understand the code, the error should refer to the "frame:SetScript" statement, but I'm not sure on that and much less how to solve that.

Error Message
Code:
Message: Interface\AddOns\McR_Queststat\mcr_queststat.lua:28: ')' expected (to close '(' at line 20) near 'SLASH_MYPRIVATESTUFF1'
Time: Tue Jul  3 07:53:23 2018
Count: 1
Stack: Interface\AddOns\McR_Queststat\mcr_queststat.lua:28: ')' expected (to close '(' at line 20) near 'SLASH_MYPRIVATESTUFF1'
[C]: ?

Locals:
TIA

McRoell
  Reply With Quote