Page 1 of 1

Script Compile Error

Posted: July 31st, 2007, 8:28 pm
by Soviet
Not usually a problem but this time i'm just totally confused...

error is a Syntax Error

Code: Select all

  trig1 waittill ("trigger");
        *
heres my script for that part

Code: Select all

thread()
{
  trig1 = getent ("a","targetname");
  brushmodel = getent ("b","targetname");
  while(1)
(
  trig1 waittill ("trigger");
  brushmodel moveZ(688,7,0,0);
  brushmodel waittill("movedone");
  wait(5);
  brushmodel moveZ(192,2,0.1,0.1);
  brushmodel waittill ("movedone");
  brushmodel moveZ(-880,.1,0,0);
  brushmodel waittill ("movedone");
  wait(10);
}
}
(i replaced targetnames, they're unique)

Posted: July 31st, 2007, 9:06 pm
by Pedsdude
while(1)
(
Shouldn't that be { instead of ( ? :)

Posted: July 31st, 2007, 9:11 pm
by Luke
What a noob!

Posted: July 31st, 2007, 9:14 pm
by Pedsdude
Hehe, sometimes it can be hard to see these tiny errors.

Posted: July 31st, 2007, 9:41 pm
by Soviet
my bad, thanks