Jump to content

Error in Payday


ViRuZGamiing

Recommended Posts

function allPlayersPayDay() 
  local allPlayers = getElementsByType("player") 
  for index,value in ipairs(allPlayers) do 
    givePlayerMoney ( value, 500 )  
    outputChatBox ( "---- Payday ----")  
    [b]outputChatBox ( "You've earned €" value)[/b] 
    outputChatBox ( "----------------")  
  end 
end 
  
function onResourceStart(thisResource) 
  setTimer ( allPlayersPayDay, 60000, 0 ) 
end 
  
addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), onResourceStart ) 

at outputchatbox an expected ) at value

Link to comment
you are missing a comma before value in that line.

don't try to get posts when TAPL (in this case) already told it

Well, fuck you then, I just was trying to cooperate. Do you think I'd really waste time on responding a senseless thread to give a hand in kind? You earned my dislike.

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