on init
declare var
declare ui_button Test
end on
taskfunc foo(arg)
message(arg)
end taskfunc
function bar()
var := random(0, 100)
foo(var)
end function
on ui_control (Test)
bar()
end on
This code will throw an error saying that function expected one argument but got none, which is entirely unexpected.
This code will throw an error saying that function expected one argument but got none, which is entirely unexpected.