• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Zombie event problem please help

Robbiet6

New Member
Joined
Feb 22, 2009
Messages
83
Reaction score
1
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
 
Last edited:
Back
Top