For some reason when i turn on the event the object thats set dosent disapear, And the countdown of players dosent occur.
Im guessing its because of this error.............
[Error - GlobalEvent Interface]
data/globalevents/scripts/zombie/onstartup.lua: onStartup
Description:
data/globalevents/scripts/zombie/startup.lua:2: in function attemp to call field 'execute query <a nil value>
stack traceback:
data/globalevents/scripts/zombie/startup.lua:2 in function <data/globalevents/scripts/zombie/onstartup.lua:1>
I realy wana use this Event and the script looks fine to me, so if anybody knows the problem Please can you tell me how to solve it, thanks.
http://imageshack.us/photo/my-images/840/zombieeventerror.png/
This is the script i am using...
function onStartup()
db.executeQuery("UPDATE `player_storage` SET `value` = 0 WHERE `key` = " .. ZE_isOnZombieArea .. ";")
doSetStorage(ZE_STATUS, 0)
doSetStorage(ZE_PLAYERS_NUMBER, ZE_DEFAULT_NUMBER_OF_PLAYERS)
doSetStorage(ZE_ZOMBIES_TO_SPAWN, 0)
doSetStorage(ZE_ZOMBIES_SPAWNED, 0)
addZombiesEventBlockEnterPosition()
return true
end
Im guessing its because of this error.............
[Error - GlobalEvent Interface]
data/globalevents/scripts/zombie/onstartup.lua: onStartup
Description:
data/globalevents/scripts/zombie/startup.lua:2: in function attemp to call field 'execute query <a nil value>
stack traceback:
data/globalevents/scripts/zombie/startup.lua:2 in function <data/globalevents/scripts/zombie/onstartup.lua:1>
I realy wana use this Event and the script looks fine to me, so if anybody knows the problem Please can you tell me how to solve it, thanks.
http://imageshack.us/photo/my-images/840/zombieeventerror.png/
This is the script i am using...
function onStartup()
db.executeQuery("UPDATE `player_storage` SET `value` = 0 WHERE `key` = " .. ZE_isOnZombieArea .. ";")
doSetStorage(ZE_STATUS, 0)
doSetStorage(ZE_PLAYERS_NUMBER, ZE_DEFAULT_NUMBER_OF_PLAYERS)
doSetStorage(ZE_ZOMBIES_TO_SPAWN, 0)
doSetStorage(ZE_ZOMBIES_SPAWNED, 0)
addZombiesEventBlockEnterPosition()
return true
end
Last edited: