Thread Tools Display Modes
08-13-20, 01:51 PM   #1
BloodDragon
An Aku'mai Servant
AddOn Author - Click to view addons
Join Date: Mar 2017
Posts: 32
Exclamation Error on GuildTaxes Addon

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: GuildTaxes.zip
  Reply With Quote
08-13-20, 03:00 PM   #2
liquidbase
A Warpwood Thunder Caller
 
liquidbase's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2010
Posts: 97
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
  Reply With Quote
08-13-20, 04:47 PM   #3
BloodDragon
An Aku'mai Servant
AddOn Author - Click to view addons
Join Date: Mar 2017
Posts: 32
Can you tell me where I have to change that?
  Reply With Quote
08-14-20, 12:27 AM   #4
liquidbase
A Warpwood Thunder Caller
 
liquidbase's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2010
Posts: 97
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
  Reply With Quote
08-14-20, 12:01 PM   #5
BloodDragon
An Aku'mai Servant
AddOn Author - Click to view addons
Join Date: Mar 2017
Posts: 32
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"
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Error on GuildTaxes Addon

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