View Single Post
06/24/21, 06:19 PM   #3
Styxius
Join Date: Jun 2021
Posts: 4
Originally Posted by AlbinoPython View Post
You might try changing
Code:
EM:RegisterForUpdate(STT.name.."Update", STT.savedVars.updateInterval, STT.Countdown)
with this
Code:
EM:RegisterForUpdate(STT.name.."Update", STT.savedVars.updateInterval, function() STT.Countdown() end)
Edit: Thanks by the way for how much progress you helped with. Minor changes but it did help. I'm curious about this error as I have recently started learning Lua and am trying to understand these errors.
That did correct part of it, but now it generates this error:
user:/AddOns/StoneTracker/StoneTracker.lua:45: function expected instead of nil
stack traceback:
user:/AddOns/StoneTracker/StoneTracker.lua:45: in function '(anonymous)'

Last edited by Styxius : 06/24/21 at 06:34 PM.
  Reply With Quote