imback1
Unknown member
- Joined
- Jul 11, 2013
- Messages
- 785
- Solutions
- 1
- Reaction score
- 46
Hello
i got problem with my vip system when system check time to remove day to a player i found error and didn't remove anything
globalevents.xml
removevipdays.lua
removevip.lua
and when system check players i found these errors
[25/12/2014 16:59:15] [Error - GlobalEvent Interface]
[25/12/2014 16:59:15] data/globalevents/scripts/removevipdays.lua
nThink
[25/12/2014 16:59:15] Description:
[25/12/2014 16:59:15] (luaGetCreatureStorage) Creature not found
[25/12/2014 16:59:16] [Error - GlobalEvent Interface]
[25/12/2014 16:59:16] data/globalevents/scripts/removevipdays.lua
nThink
[25/12/2014 16:59:16] Description:
[25/12/2014 16:59:16] data/globalevents/scripts/removevipdays.lua:6: attempt to perform arithmetic on a boolean value
[25/12/2014 16:59:16] stack traceback:
[25/12/2014 16:59:16] data/globalevents/scripts/removevipdays.lua:6: in function <data/globalevents/scripts/removevipdays.lua:1>
[25/12/2014 16:59:16] [Error - GlobalEvents::think] Couldn't execute event: checkvip
and when i check removevip i found this
[25/12/2014 17:01:39] [Error - GlobalEvents::think] Couldn't execute event: removevip
please help me with it >.< btw this is vip system which i use
http://otland.net/threads/vip-system.19426/
@Limos
@Printer
@Ninja
@StreamSide
@imkingran
i got problem with my vip system when system check time to remove day to a player i found error and didn't remove anything
globalevents.xml
Code:
<globalevent name="checkvip" interval="20" script="removevipdays.lua"/>
<globalevent name="removevip" interval="30" script="removevip.lua"/>
Code:
function onTimer(cid, item, fromPosition, toPosition)
for _, name in ipairs(getOnlinePlayers()) do
local player = getPlayerByName(name)
if getPlayerStorageValue(player,11551) > 1 then
setPlayerStorageValue(player,11551,getPlayerStorageValue(player) - 1)
end
end
end
Code:
function onThink(cid, item, fromPosition, toPosition)
for _, name in ipairs(getOnlinePlayers()) do
local player = getPlayerByName(name)
if getPlayerStorageValue(player,11551) == 1 then
setPlayerStorageValue(player,11551,0)
end
end
end
[25/12/2014 16:59:15] [Error - GlobalEvent Interface]
[25/12/2014 16:59:15] data/globalevents/scripts/removevipdays.lua
[25/12/2014 16:59:15] Description:
[25/12/2014 16:59:15] (luaGetCreatureStorage) Creature not found
[25/12/2014 16:59:16] [Error - GlobalEvent Interface]
[25/12/2014 16:59:16] data/globalevents/scripts/removevipdays.lua
[25/12/2014 16:59:16] Description:
[25/12/2014 16:59:16] data/globalevents/scripts/removevipdays.lua:6: attempt to perform arithmetic on a boolean value
[25/12/2014 16:59:16] stack traceback:
[25/12/2014 16:59:16] data/globalevents/scripts/removevipdays.lua:6: in function <data/globalevents/scripts/removevipdays.lua:1>
[25/12/2014 16:59:16] [Error - GlobalEvents::think] Couldn't execute event: checkvip
and when i check removevip i found this
[25/12/2014 17:01:39] [Error - GlobalEvents::think] Couldn't execute event: removevip
please help me with it >.< btw this is vip system which i use
http://otland.net/threads/vip-system.19426/
@Limos
@Printer
@Ninja
@StreamSide
@imkingran