Jump to content

tonumber problem with a 0


Recommended Posts

How I can attach the zero at the end?

tonumber automatically put the zero at the end away?

addCommandHandler ("ma",    function (player, cmd, zahl) 
outputChatBox (tonumber ("1".."."..zahl.."0")) 
end) 

so it must be look

/ma 1

result 1.10

but it looks like so

/ma 1

result 1.1

Has anybody a idea how I can solve this problem I need this for a money script?

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