Thread: Small problem
View Single Post
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