THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 18/05/2011 at 15:50, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 11
Platform: Windows ;
Language(s) : C.O.F.F.E.E ;
---------
I'm new to scripting in C4D and I just can't figure out what is wrong with my function definition.
If I paste the following code into the Script Manager and click Execute...
_TestFunction(msg)
{
println(msg);
}
println("About to call the function");
TestFunction("This is the message");_
I get the error "[FAIL] Script 'TestScript' Line 1 Pos 14 : Variable or function expected."
It seems to happen with every function I try, even ones pasted from examples. Code by itself seems to work ok though.
e.g.
println("About to call the function");
by itself works just fine.