MIKI785 Posted January 2, 2012 Posted January 2, 2012 Hello, I have a problem, I can't change float to interger, how to do it? I tried to do it via string.gsub it worked, it made 6 from 6.5, but it didn't worked for 26.5, I don't know why.. is there any other way how to do it? Lua Scripter Owner of mshost.cz MTA portal.
Castillo Posted January 2, 2012 Posted January 2, 2012 Not sure, maybe this could help? https://wiki.multitheftauto.com/wiki/Math.round You can also use math.floor(number) San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
MIKI785 Posted January 2, 2012 Author Posted January 2, 2012 Thanks, it works. Lua Scripter Owner of mshost.cz MTA portal.
Castillo Posted January 2, 2012 Posted January 2, 2012 You're welcome . San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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