🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

scriptbuilder addon problem

Started by
0 comments, last by Hatori 15 years, 3 months ago
// 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); }
Advertisement
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!

This topic is closed to new replies.

Advertisement