StreetSaintz Posted July 27, 2012 Share Posted July 27, 2012 (edited) whats wrong in this code guys ? if((#playersAlive + 1) == 1)then outputChatBox("You earned " .. formula .." points and €" .. math.ceil(moneyFormula) .. " for ending " .. #playersAlive + 1 .. "st place!") elseif((#playersAlive + 1) == 2) then outputChatBox("You earned " .. formula .." points and €" .. math.ceil(moneyFormula) .. " for ending " .. #playersAlive + 1 .. "nd place!") elseif((#playersAlive + 1) == 3) then outputChatBox("You earned " .. formula .." points and €" .. math.ceil(moneyFormula) .. " for ending " .. #playersAlive + 1 .. "rd place!") else outputChatBox("You earned " .. formula .." points and €" .. math.ceil(moneyFormula) .. " for ending " .. #playersAlive + 1 .. "th place!") end Edited July 27, 2012 by Guest Link to comment
Castillo Posted July 27, 2012 Share Posted July 27, 2012 1: Post your code with [lua] tags. 2: Maybe telling us what's wrong with it could help us help you. Link to comment
StreetSaintz Posted July 27, 2012 Author Share Posted July 27, 2012 nvm fixed and thnx Link to comment
albers14 Posted July 27, 2012 Share Posted July 27, 2012 (edited) nvm fixed and thnx 1: Post your code with [lua] tags.2: Maybe telling us what's wrong with it could help us help you. -- Wheres number 2?And please post full codes, we dont know what formula is and so on. **Orh didnt saw that it waas fixed, sorry ** Edited July 27, 2012 by Guest Link to comment
Castillo Posted July 27, 2012 Share Posted July 27, 2012 There's number 1 and 2, your question just makes no sense. P.S: Problem is solved as he said above. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now