ertlflorian1 Posted June 11, 2013 Share Posted June 11, 2013 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
Bandito Posted June 11, 2013 Share Posted June 11, 2013 -- # Server Side ~ addCommandHandler ('ma', function ( _,_,zahl ) if tonumber ( zahl ) then outputChatBox ( ' 1.'..zahl..'0 ' ) end end ) Try it and tell me the results [ = .. . Link to comment
PaiN^ Posted June 11, 2013 Share Posted June 11, 2013 If you used tonumber i't will cancel the zero since it has no math value, try 3αsн8 αℓ7sαs's code it should work just fine . 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