scriptbuilder addon problem
// Let's include another script file //#include "scriptinclude.as" Hello I have this modified sample script that I am trying to compile with the scriptbuilder addon. However, I get the error message: script.as (24, 37) : ERR : Expected '(' Build failed The offending line is: cArgument.retrieve(@sThreadParam); Does anyone have any idea what could be causing this? I can't seem to find what I am doing wrong. Thanks! Hatori... void main() { print("I'm now in main()\n"); //includedFunction(); } class sThreadParam { int m_nSteps; float m_fWait; float m_fDistance; string m_strThread; string m_strAnimation; string m_strLowerAnimation; }; void TrickShotIdleStepLeftThread (any in &cArgument) { sThreadParam @sThreadParam; cArgument.retrieve(@sThreadParam); }
void TrickShotIdleStepLeftThread(any ∈ cArgument)
{
sThreadParam @ThreadParam;
cArgument.retrieve (@ThreadParam);
}
Silly me! OK this fixes it.... rather than having sThreadParam @sThreadParam which causes a problem I changed the variable name to: sThreadParam @ThreadParam
Now it compiles!!!! Thanks for anyone that looked at this!
{
sThreadParam @ThreadParam;
cArgument.retrieve (@ThreadParam);
}
Silly me! OK this fixes it.... rather than having sThreadParam @sThreadParam which causes a problem I changed the variable name to: sThreadParam @ThreadParam
Now it compiles!!!! Thanks for anyone that looked at this!
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement