WoWInterface - View Single Post - Syntax Problem
Thread: Syntax Problem
View Single Post
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