function intstring(name) (name.."string") = tostring(name) -- Errors Here end
I guess (name.."string") is the problem, but how can I revise this to fix the error?
Posted 15 October 2012 - 03:43 AM
function intstring(name) (name.."string") = tostring(name) -- Errors Here end
Posted 15 October 2012 - 04:31 AM
Posted 15 October 2012 - 04:39 AM
function intstring(var) if type(var) == 'string' then return math.floor(tonumber(var)) -- math.floor so there are no decimals elseif type(var == 'number' then return tostring(var) end end
0 members, 1 guests, 0 anonymous users