tsb0314
New Member
- Joined
- Oct 21, 2009
- Messages
- 220
- Reaction score
- 4
wow i jsut spent all this time doing this tutorial because the event http://otland.net/f82/zombie-event-new-version-bug-free-updated-128664/ it looks awsome and i would like it to work but this poped up when i do the talkaction a script
here is the talkaction script if you need it...... oh and i am using tfs 0.3 6
thanks
Code:
[13/07/2011 22:31:09] [Error - TalkAction Interface]
[13/07/2011 22:31:09] data/talkactions/scripts/zombie/onsay.lua:onSay
[13/07/2011 22:31:09] Description:
[13/07/2011 22:31:10] data/talkactions/scripts/zombie/onsay.lua:3: attempt to call global 'getZombiesEventPlayers' (a nil value)
[13/07/2011 22:31:10] stack traceback:
[13/07/2011 22:31:10] data/talkactions/scripts/zombie/onsay.lua:3: in function <data/talkactions/scripts/zombie/onsay.lua:1>
here is the talkaction script if you need it...... oh and i am using tfs 0.3 6
Code:
function onSay(cid, words, param, channel)
if(getStorage(ZE_STATUS) ~= 2) then
local players_on_arena_count = #getZombiesEventPlayers()
if(param == 'force') then
if(players_on_arena_count > 0) then
setZombiesEventPlayersLimit(players_on_arena_count )
addZombiesEventBlockEnterPosition()
doSetStorage(ZE_STATUS, 2)
doBroadcastMessage("Zombie Arena Event started.")
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Zombies event started.")
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Cannot start Zombies event. There is no players on arena.")
end
else
if(param ~= '' and tonumber(param) > 0) then
setZombiesEventPlayersLimit(tonumber(param))
end
removeZombiesEventBlockEnterPosition()
doSetStorage(ZE_STATUS, 1)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Event started.")
doPlayerBroadcastMessage(cid, "Zombie Arena Event teleport is opened. We are waiting for " .. getZombiesEventPlayersLimit() - players_on_arena_count .. " players to start.")
end
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Zombies event is already running.")
end
return true
end
thanks
Last edited: