View Single Post
12/18/20, 07:10 PM   #10
myristican
AddOn Author - Click to view addons
Join Date: Dec 2020
Posts: 10
Do you know why I get a nil value for the guildID in this part of my script? (Line 2)

Lua Code:
  1. function GuildBankLedger:SetupListener(guildID)
  2.   self.LibHistoireListener[guildID] = LGH:CreateGuildHistoryListener(guildID, GUILD_HISTORY_BANK)

It should pull it from the command that calls it right? which is this one.

Lua Code:
  1. for i = 1, GetNumGuilds() do
  2.         local guildID = GetGuildId(i)
  3.         GuildBankLedger:SetupListener(guildID)
  4.     end

I feel like im just not understanding lua very well.
  Reply With Quote