wikutag
SoulBound 8.6 100% custom
0.3.6 tfs
My 034-exhaust lib
error
My 034-exhaust lib
Code:
exhaustion =
{
check = function (cid, storage)
if(getPlayerStorageValue(cid, storage) >= os.time(t)) then
return TRUE
end
return FALSE
end,
get = function (cid, storage)
local exhaust = getPlayerStorageValue(cid, storage)
if(exhaust > 0) then
local left = exhaust - os.time(t)
if(left >= 0) then
return left
end
end
return FALSE
end,
set = function (cid, storage, time)
setPlayerStorageValue(cid, storage, os.time(t) + time)
end,
make = function (cid, storage, time)
local exhaust = exhaustion.get(cid, storage)
if(not exhaust) then
exhaustion.set(cid, storage, time)
return TRUE
end
return FALSE
end
}
error
Code:
[17/10/2014 20:40:03] [Error - TalkAction Interface]
[17/10/2014 20:40:03] buffer:onSay
[17/10/2014 20:40:03] Description:
[17/10/2014 20:40:03] data/lib/034-exhaustion.lua:4: field 'day' missing in date table
[17/10/2014 20:40:03] stack traceback:
[17/10/2014 20:40:03] [C]: in function 'time'
[17/10/2014 20:40:03] data/lib/034-exhaustion.lua:4: in function 'check'
[17/10/2014 20:40:03] [string "loadBuffer"]:13: in function <[string "loadBuffer"]:8>".