Some code should explain it better:
function ks_function
tcm_function(1)
end function
taskfunc tcm_function(param)
message(param)
end taskfunc
on init
tcm.init(10)
declare ui_switch switch
end on
on ui_control(switch)
ks_function
end on
Compile error: wrong number of parameters to tcm_function. Expected 1, got 0
works if you 'call' ks_function.
Works if the functions are declared after 'on init' and after 'on ui_control(switch). So why not do that? Because it's a bit messy and it might affect larger projects.
Some code should explain it better:
Compile error: wrong number of parameters to tcm_function. Expected 1, got 0
works if you 'call' ks_function.
Works if the functions are declared after 'on init' and after 'on ui_control(switch). So why not do that? Because it's a bit messy and it might affect larger projects.