Jump to content

what i am doing wrong?


Recommended Posts

this is destructionderby.lua.

function DestructionDerby:handleFinishActivePlayer(player) 
    -- Update ranking board for player being removed 
    --if not self.rankingBoard then 
    --  self.rankingBoard = RankingBoard:create() 
    --  self.rankingBoard:setDirection( 'up', getActivePlayerCount() ) 
--  end 
    --local timePassed = self:getTimePassed() 
    --self.rankingBoard:add(player, timePassed) 
    -- Do remove 
    -- Update ranking board if one player left 
    setTimer(exports.FckNs:addToDeathlist,100,1,player, #getActivePlayers()) 
    local activePlayers = getActivePlayers() 
    if #activePlayers == 1 then 
        --self.rankingBoard:add(activePlayers[1], timePassed) 
        triggerEvent("onPlayerDestructionDerbyWin", getRootElement(), activePlayers[1]) 
        setTimer(exports.FckNs:addToDeathlist,100,1,activePlayers[1], 1) 
        --showMessage(getPlayerName(activePlayers[1]) .. ' is the final survivor!', 169, 214, 

i have problem on line 12 and 17.

thanks. :)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...