Koni 1 Posted May 15, 2011 I have started using the -showScriptErrors to see where I can imrove my scripting, but I keep getting script errors coming up for one of the sleep commands in a script and I don't know why. =============================================== 30 setovercast 0; sleep 15; postRise = ppEffectCreate ["colorCorrections",1500001]; postRise ppEffectAdjust [ 1, 0.62, 0, [0, 0, 0, 0],[3.12, 0.25, 0.87, 1.26],[-1.11, 0.03, 0.02, 0]]; postRise ppEffectEnable true; postRise ppEffectCommit 30; sleep 30; postDay = ppEffectCreate ["colorCorrections",1500002]; postDay ppEffectAdjust [ 1, 0.63, 0, [0, 0, 0, 0],[9.94, -1.76, -0.26, 1.45],[0.58, -0.25, 0.02, 0]]; postDay ppEffectEnable true; postDay ppEffectCommit 10; sleep 10; postDay ppEffectAdjust [ 1, 0.62, 0, [0, 0, 0, 0],[3.12, 0.25, 0.87, 1.26],[-4.11, 0.03, 0.02, 0]]; postDay ppEffectCommit 10; ============================================ For some reason I get an error for the first sleep 10; '[]sleep 10;' error generic error expression name I know I must be doing something wrong, but I don't know what. Share this post Link to post Share on other sites
sxp2high 16 Posted May 15, 2011 No errors with that code... how are you executing it? Share this post Link to post Share on other sites
Koni 1 Posted May 15, 2011 (edited) The old way [] exec "scriptName.sqf" How do I execute it with the execvm way ? That's probably my problem, still use old sqs mixed in with a little sqf :) Edited May 15, 2011 by Koni Share this post Link to post Share on other sites
sxp2high 16 Posted May 15, 2011 Don't mix up SQS and SQF. Your above code is completely SQF. So you gotta call it with: nul = execVM "ScriptName.sqf"; Share this post Link to post Share on other sites
.kju 3105 Posted May 15, 2011 http://community.bistudio.com/wiki/SQF Share this post Link to post Share on other sites