WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   AddOn Help/Support (https://www.wowinterface.com/forums/forumdisplay.php?f=3)
-   -   Error on GuildTaxes Addon (https://www.wowinterface.com/forums/showthread.php?t=58148)

BloodDragon 08-13-20 01:51 PM

Error on GuildTaxes Addon
 
1 Attachment(s)
Hey i use the Addon GuildTaxes, but sometimes i have this error:

2x GuildTaxes\GuildTaxes-0.1.10.lua:512: Usage: Ambiguate(fullName, context)
[string "=[C]"]: in function `Ambiguate'
[string "@GuildTaxes\GuildTaxes-0.1.10.lua"]:512: in function `PurgeOldData'
[string "@GuildTaxes\GuildTaxes-0.1.10.lua"]:494: in function <GuildTaxes\GuildTaxes.lua:480>

Locals:
(*temporary) = nil
(*temporary) = "guild"

Thats the Addon: Attachment 9468

liquidbase 08-13-20 03:00 PM

The character name is missing here. Either this cannot be read out correctly or it does not exist, so the variable fullName is nil and the Ambiguate function outputs an error.

Here you would have to ask whether the variable is not nil, something like:
Lua Code:
  1. if fullName ~= nil then
  2.     table.insert(guildPlayers, Ambiguate(fullName, "guild"))
  3. end

BloodDragon 08-13-20 04:47 PM

Can you tell me where I have to change that?

liquidbase 08-14-20 12:27 AM

GuildTaxes.lua @line 512
Replace
Lua Code:
  1. table.insert(guildPlayers, Ambiguate(fullName, "guild"))
with
Lua Code:
  1. if fullName ~= nil then
  2.     table.insert(guildPlayers, Ambiguate(fullName, "guild"))
  3. end

BloodDragon 08-14-20 12:01 PM

hmmm now its that:

3x GuildTaxes\GuildTaxes-0.1.10.lua:413: Usage: Ambiguate(fullName, context)
[string "=[C]"]: in function `Ambiguate'
[string "@GuildTaxes\GuildTaxes-0.1.10.lua"]:413: in function `FillOutgoingQueue'
[string "@GuildTaxes\GuildTaxes-0.1.10.lua"]:443: in function <GuildTaxes\GuildTaxes.lua:426>

Locals:
(*temporary) = nil
(*temporary) = "guild"


All times are GMT -6. The time now is 05:42 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI