script error

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

Moderator: Core Staff

Post Reply
zipperdude
CJ Worshipper
CJ Worshipper
Posts: 386
Joined: July 12th, 2007, 6:07 pm

script error

Post by zipperdude » February 20th, 2008, 3:14 am

okay so ive looked at this script many many times and cant figure out whats wrong with it. It says line 7 bad syntax
--------------------------
main()
{
thread wall();
{

wall()
{
wall = getent ("wall","targetname");
trigger = getent ("wall_trig","targetname");
while(1)
{
trigger waittill ("trigger");
wall movex (-10,2,0.5,0.5);
wait(5);
wall moveZ (96,2,0.5,0.5);
wait(5);
wall moveZ (-96,2,0.5,0.5);
wait(5);
wall movex (10,2,0.5,0.5);
wall waittill ("movedone");
}
}

zipperdude
CJ Worshipper
CJ Worshipper
Posts: 386
Joined: July 12th, 2007, 6:07 pm

Post by zipperdude » February 20th, 2008, 3:50 am

Thank you

User avatar
YaNo
CJ Worshipper
CJ Worshipper
Posts: 460
Joined: May 5th, 2005, 9:34 pm
Location: Azeroth
Contact:

Post by YaNo » February 20th, 2008, 7:07 pm

Code: Select all

main() 
{ 
thread wall(); 
{ 
needed to be:

Code: Select all

main() 
{ 
thread wall(); 
} 

User avatar
YaNo
CJ Worshipper
CJ Worshipper
Posts: 460
Joined: May 5th, 2005, 9:34 pm
Location: Azeroth
Contact:

Post by YaNo » February 20th, 2008, 9:03 pm

KillerSam wrote:^^ already said that
I explained it and didn't just said "Use the above - should work." :P

topher
CJ Spammer!
CJ Spammer!
Posts: 742
Joined: December 4th, 2005, 9:17 am
Location: OK
Contact:

Post by topher » February 20th, 2008, 11:16 pm

Whoops - KS hit the edit button!!

I lose.
LOL
Image

Post Reply

Who is online

Users browsing this forum: No registered users and 38 guests