Deddalt Posted October 26, 2008 Posted October 26, 2008 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?
Deddalt Posted October 26, 2008 Author Posted October 26, 2008 tostring( wallet ) You just had to make me feel stupid, didn't you? Thanks for the help
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