Rainerr
Mapper n scri
- Joined
- Apr 2, 2009
- Messages
- 237
- Reaction score
- 1
[28/07/2012 18:40:20] [Error - GlobalEvent Interface]
[28/07/2012 18:40:21] data/globalevents/scripts/zombie/onthink.luanThink
[28/07/2012 18:40:21] Description:
[28/07/2012 18:40:21] data/lib/zombie_event.lua:105: bad argument #2 to 'random' (interval is empty)
[28/07/2012 18:40:21] stack traceback:
[28/07/2012 18:40:21] [C]: in function 'random'
[28/07/2012 18:40:21] data/lib/zombie_event.lua:105: in function 'spawnNewZombie'
[28/07/2012 18:40:21] data/globalevents/scripts/zombie/onthink.lua:6: in function <data/globalevents/scripts/zombie/onthink.lua:1>
[28/07/2012 18:40:21] [Error - GlobalEvents::think] Couldn't execute event: ZombieGlobalThink
- - - Updated - - -
function onThink(interval, lastExecution, thinkInterval)
if(getStorage(ZE_STATUS) == 2) then
setZombiesToSpawnCount(getZombiesToSpawnCount()+1)
local players = getZombiesEventPlayers()
for i=1, getZombiesToSpawnCount() * 2 do
if(getZombiesToSpawnCount() > 0 and spawnNewZombie()) then
setZombiesToSpawnCount(getZombiesToSpawnCount()-1)
end
end
end
return true
end
[28/07/2012 18:40:21] data/globalevents/scripts/zombie/onthink.luanThink
[28/07/2012 18:40:21] Description:
[28/07/2012 18:40:21] data/lib/zombie_event.lua:105: bad argument #2 to 'random' (interval is empty)
[28/07/2012 18:40:21] stack traceback:
[28/07/2012 18:40:21] [C]: in function 'random'
[28/07/2012 18:40:21] data/lib/zombie_event.lua:105: in function 'spawnNewZombie'
[28/07/2012 18:40:21] data/globalevents/scripts/zombie/onthink.lua:6: in function <data/globalevents/scripts/zombie/onthink.lua:1>
[28/07/2012 18:40:21] [Error - GlobalEvents::think] Couldn't execute event: ZombieGlobalThink
- - - Updated - - -
function onThink(interval, lastExecution, thinkInterval)
if(getStorage(ZE_STATUS) == 2) then
setZombiesToSpawnCount(getZombiesToSpawnCount()+1)
local players = getZombiesEventPlayers()
for i=1, getZombiesToSpawnCount() * 2 do
if(getZombiesToSpawnCount() > 0 and spawnNewZombie()) then
setZombiesToSpawnCount(getZombiesToSpawnCount()-1)
end
end
end
return true
end