Mister Budex
BudexOT.com
- Joined
- Jun 22, 2016
- Messages
- 1,547
- Solutions
- 18
- Reaction score
- 378
Hello , I have problem with Fire storm event mod script.. so i took script from here
(MOD) Fire Storm Event
and i get this error in TFS 0.3.6
and here is my 034-exhaustion.lua
Thanks !
(MOD) Fire Storm Event
and i get this error in TFS 0.3.6
Code:
[Error - TalkAction Interface]
[09/09/2017 01:06:32] buffer:onSay
[09/09/2017 01:06:32] Description:
[09/09/2017 01:06:32] data/lib/034-exhaustion.lua:28: field 'day' missing in date table
[09/09/2017 01:06:32] stack traceback:
[09/09/2017 01:06:32] [C]: in function 'time'
[09/09/2017 01:06:32] data/lib/034-exhaustion.lua:28: in function 'set'
[09/09/2017 01:06:32] [string "loadBuffer"]:61: in function <[string "loadBuffer"]:3>
Code:
exhaustion =
{
check = function (cid, storage)
if(getPlayerFlagValue(cid, PLAYERFLAG_HASNOEXHAUSTION)) then
return false
end
return getPlayerStorageValue(cid, storage) >= os.time(t)
end,
get = function (cid, storage)
if(getPlayerFlagValue(cid, PLAYERFLAG_HASNOEXHAUSTION)) then
return false
end
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
}