Syntax Problem - WoWInterface
Thread Tools Display Modes
Prev Previous Post   Next Post Next
02-17-13, 09:06 PM   #1
A Molten Giant
Kendian's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 614
Syntax Problem

Hiyas, all. This has me stumped, so forgive me if it's an obvious question. I have a small add on I wrote to go with Seerah's lovely Sstats add on. Sstats Zone. I'm trying to change the syntax of the readout to display zone AND subzone. The problem comes in when I try to separate them with a colon, like so.

What I end up with are syntax errors, or just ZoneSubzone, no colon. Here is the code I have. I know it's something simple, but I can't find it.

local sStats_Zone, sStats_ZoneText = sStats:CreateModule("Zone")

local ZoneText = CreateFrame("Frame")
ZoneText:SetScript("OnUpdate", function(self, elapsed)
                  Subzone = GetMinimapZoneText()
                  zone = GetZoneText()
                  sStats:SetModuleText(sStats_ZoneText, zone, Subzone, ":")

-- Initialize
sStats.RegisterCallback(sStats_Zone, "sStats_Modules_Ready", function()


My thanks, for any/all help~
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Syntax Problem

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off