Jump to content

Help with integers/strings


Recommended Posts

I have a command to check how much money you have in your wallet (/wallet) and I want to have it do:

local wallet =  getElementData( sourcePlayer, "wallet" ) 
outputChatBox( " * You have $"..wallet.." in your wallet.", sourcePlayer, 200, 200, 200 ) 

But it's giving me a weird string, something along the lines of

* You have $1e+06 in your wallet.

I have a feeling that this is due to the data being an integer, but if that's the case, how do I make that data into a readable string?

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