Script Compile Error

Have questions about CoD/UO mapping that aren't covered in the tutorials section? Post here!

Moderator: Core Staff

Locked
Soviet
Core Staff
Core Staff
Posts: 7760
Joined: April 23rd, 2005, 9:12 pm
Location: Plano, Texas
Contact:

Script Compile Error

Post by Soviet » July 31st, 2007, 8:28 pm

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)
Image
ImageImageImage
Image
"Zaitsev is a cunt." - Pedsdude

Pedsdude
Site Admin
Site Admin
Posts: 15909
Joined: October 15th, 2004, 7:18 pm
Location: UK

Post by Pedsdude » July 31st, 2007, 9:06 pm

while(1)
(
Shouldn't that be { instead of ( ? :)
Image
Image

Luke
Past/Inactive Team Member
Past/Inactive Team Member
Posts: 1774
Joined: May 31st, 2005, 12:42 am
Location: Cornwall, UK

Post by Luke » July 31st, 2007, 9:11 pm

What a noob!
Watch this before posting a question: http://www.albinoblacksheep.com/flash/posting.php

Pedsdude
Site Admin
Site Admin
Posts: 15909
Joined: October 15th, 2004, 7:18 pm
Location: UK

Post by Pedsdude » July 31st, 2007, 9:14 pm

Hehe, sometimes it can be hard to see these tiny errors.
Image
Image

Soviet
Core Staff
Core Staff
Posts: 7760
Joined: April 23rd, 2005, 9:12 pm
Location: Plano, Texas
Contact:

Post by Soviet » July 31st, 2007, 9:41 pm

my bad, thanks
Image
ImageImageImage
Image
"Zaitsev is a cunt." - Pedsdude

Locked

Who is online

Users browsing this forum: No registered users and 39 guests