WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Small problem (https://www.wowinterface.com/forums/showthread.php?t=49923)

Tntdruid 09-18-14 03:19 AM

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.

Lombra 09-18-14 04:00 AM

So L is not defined.


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

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