Good job Shawak!
thank you i already add it now looking for a script to show in web player
03:00 GM: data/lib/function.lua:477: attempt to perform arithmetic on local 'days' (a string value) [20/09/2009 03:58:36] stack traceback: [20/09/2009 03:58:36] data/lib/function.lua:477: in function <data/lib/function.lua:476> [20/09/2009 03:58:36] (tail call):
03:00 GM: 20/09/2009 03:58:57] Lua Script Error: [TalkAction Interface] [20/09/2009 03:58:57] data/talkactions/scripts/vip/set.luanSay .
wtf how do i fix this
function getPlayerVipDays(cid)
local left, d = (getPlayerStorageValue(cid, vip_storage) - os.time()), 0
while left >= 86400 do
left = left - 86400
d = d+1
end
return d
end
function getPlayerVipDays(cid)
return math.ceil(getPlayerStorageValue(cid, vip_storage) / 60 / 60 / 24)
end
hah hah ahah ahah ahahah ahahah
Lua:function getPlayerVipDays(cid) local left, d = (getPlayerStorageValue(cid, vip_storage) - os.time()), 0 while left >= 86400 do left = left - 86400 d = d+1 end return d end
??? LOOOP ???? xDDD
Lua:function getPlayerVipDays(cid) return math.ceil(getPlayerStorageValue(cid, vip_storage) / 60 / 60 / 24) end
Why?Rehost :d
Why?