Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 1539

Lua Scripting • Re: colors.lua

$
0
0
"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')]
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.

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



Viewing all articles
Browse latest Browse all 1539

Trending Articles