Jump to content

Now my race countdown not working


Miika

Recommended Posts

It plays first sound but no more.

function viivat(race) 
    outputChatBox("3", getRootElement(), 255, 255, 255) 
    playSoundFrontEnd ( race, 43 ) 
    setTimer ( viivat2, 1000, 1 ) 
end 
addCommandHandler("viivat", viivat) 
  
function viivat2(racesecond) 
    outputChatBox("2", getRootElement(), 255, 255, 255) 
    playSoundFrontEnd ( racesecond, 43 ) 
    setTimer ( viivat3, 1000, 1 ) 
end 
  
function viivat3(racethird) 
    outputChatBox("1", getRootElement(), 255, 255, 255) 
    playSoundFrontEnd ( racethird, 43 ) 
    setTimer ( viivat4, 1000, 1 ) 
end 
  
function viivat4(racefinal) 
    outputChatBox("NYT!", getRootElement(), 255, 255, 0) 
    playSoundFrontEnd ( racefinal, 44 ) 
end 

Link to comment
  
function viivat(race) 
    outputChatBox("3", getRootElement(), 255, 255, 255) 
    playSoundFrontEnd ( race, 43 ) 
    setTimer ( viivat2, 1000, 1, race ) 
end 
addCommandHandler("viivat", viivat) 
  
function viivat2(racesecond) 
    outputChatBox("2", getRootElement(), 255, 255, 255) 
    playSoundFrontEnd ( racesecond, 43 ) 
    setTimer ( viivat3, 1000, 1, racesecond ) 
end 
  
function viivat3(racethird) 
    outputChatBox("1", getRootElement(), 255, 255, 255) 
    playSoundFrontEnd ( racethird, 43 ) 
    setTimer ( viivat4, 1000, 1, racethird ) 
end 
  
function viivat4(racefinal) 
    outputChatBox("NYT!", getRootElement(), 255, 255, 0) 
    playSoundFrontEnd ( racefinal, 44 ) 
end 
  

Link to comment
  
function viivat(race) 
    outputChatBox("3", getRootElement(), 255, 255, 255) 
    playSoundFrontEnd ( race, 43 ) 
    setTimer ( viivat2, 1000, 1, race ) 
end 
addCommandHandler("viivat", viivat) 
  
function viivat2(racesecond) 
    outputChatBox("2", getRootElement(), 255, 255, 255) 
    playSoundFrontEnd ( racesecond, 43 ) 
    setTimer ( viivat3, 1000, 1, racesecond ) 
end 
  
function viivat3(racethird) 
    outputChatBox("1", getRootElement(), 255, 255, 255) 
    playSoundFrontEnd ( racethird, 43 ) 
    setTimer ( viivat4, 1000, 1, racethird ) 
end 
  
function viivat4(racefinal) 
    outputChatBox("NYT!", getRootElement(), 255, 255, 0) 
    playSoundFrontEnd ( racefinal, 44 ) 
end 
  

not working

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...