Thread Tools Display Modes
09-18-14, 03:19 AM   #1
Tntdruid
Premium Member
 
Tntdruid's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Jan 2005
Posts: 55
Small problem

Getting this error:
Message: Interface\AddOns\Accountant_Classic\Accountant.lua:99: attempt to index global 'L' (a nil value)
Time: 09/18/14 11:14:38
Count: 1
Stack: Interface\AddOns\Accountant_Classic\Accountant.lua:99: in function <Interface\AddOns\Accountant_Classic\Accountant.lua:96>
(tail call): ?
[string "*:OnClick"]:2: in function <[string "*:OnClick"]:1>


Locals: mailIndex = 1
_ = nil
_ = "Interface\Icons\INV_Scroll_03"
sender = "Alliance Auction House"
_ = "Auction successful: Thorium Bar (20)"
_ = 439716
_ = 0
_ = 29.950902938843
_ = nil
_ = 1
_ = nil
_ = 1
_ = nil
(*temporary) = <function> defined =[C]:-1
(*temporary) = "Alliance Auction House"
(*temporary) = nil
(*temporary) = "attempt to index global 'L' (a nil value)"



My code:


line 99 is if strfind(sender, L.AuctionHouse) then


function TakeInboxMoney(mailIndex)
local _, _, sender, _, _, _, _, _, _, _, _, _= GetInboxHeaderInfo(mailIndex)
if sender ~= nil then
if strfind(sender, L.AuctionHouse) then
Accountant_Mode = "AH"
else
Accountant_Mode = "MAIL"
end
else
Accountant_Mode = "MAIL"
end
end


The Wrap lua code dont works in Chrome

i'm trying to detect if the mail is from ah so i can track the gold i get.
  Reply With Quote
09-18-14, 04:00 AM   #2
Lombra
A Molten Giant
 
Lombra's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 554
So L is not defined.
__________________
Grab your sword and fight the Horde!
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Small problem

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