Jump to content

Error in Payday


ViRuZGamiing

Recommended Posts

Posted
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

"If debugging is the process of removing software bugs, then programming must be the process of putting them in."

Posted

Yes I know I thought to make it bold so you would see the line better but didn't work xD

"If debugging is the process of removing software bugs, then programming must be the process of putting them in."

Posted
you are missing a comma before value in that line.

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

"If debugging is the process of removing software bugs, then programming must be the process of putting them in."

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

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