Hello.

I have error in script:

Somebody can help me?

Will be great if you will help me.


Line #: 1692
Chunk: ...?Users?Lenovo?DOCUME?1?XenoBot?Scripts??32CASI? 1.LUA
Error: attempt to index local 'CONTAINER' (a nil value)
This is an error with user-input and should not be reported as a bug with XenoBot.



script:

function CountMoney
local Cont = Container.New(CONTAINER:lower()) <1692
local MoneyTotal = 0
if Cont:isOpen() then
for i = 0, Cont:ItemCount() - 1 do
local Spot = Cont:GetItemData(i)
if Spot.id == 3043 then
MoneyTotal = MoneyTotal + Spot.count
end
end
end
return MoneyTotal
end