Jump to content

whats wrong in this code ?


Recommended Posts

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 by Guest
Link to comment
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 by Guest
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...