ZueiraPlays Posted May 8, 2013 Posted May 8, 2013 Fala, galera! Toda vez que vai iniciar o gamemode, acontece o seguinte erro: SCRIPT ERROR: ............... ')' expected near ':' function math.round(number, decimals, method) decimals = decimals or 0 local factor = 10 ^ decimals if method == "ceil" or method == "floor" then return math[method](number * factor) / factor else return tonumber("% ." .. decimals .. "f":format(number)) end end Se alguém puder ajudar, serei muito grato!
DNL291 Posted May 8, 2013 Posted May 8, 2013 function math.round(number, decimals, method) decimals = decimals or 0 local factor = 10 ^ decimals if (method == "ceil" or method == "floor") then return math[method](number * factor) / factor else return tonumber(("%."..decimals.."f"):format(number)) end end Please do not PM me with scripting related question nor support, use the forums instead.
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