Actually, this wasn't the correct syntax as per how your first two function parameters looked. You should have used [&MeasureScript:FunctionName(255,50,197)]. The third function will work with the '255,50,197' parameter though, since you extract the comma separated values from the string in the function body."Script: colors.lua:12: attempt to perform arithmetic on local 'r' (a string value)"
I'm using the correct syntax [&MeasureScript:FunctionName('255,50,197')]
Additionally, you might want to see the tonumber() or tostring() functions in Lua, in order to solve other potential type mismatch errors.
Statistics: Posted by Yincognito — Today, 2:32 am