Page 1 of 1

script error

Posted: February 20th, 2008, 3:14 am
by zipperdude
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");
}
}

Posted: February 20th, 2008, 3:50 am
by zipperdude
Thank you

Posted: February 20th, 2008, 7:07 pm
by YaNo

Code: Select all

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

Code: Select all

main() 
{ 
thread wall(); 
} 

Posted: February 20th, 2008, 9:03 pm
by YaNo
KillerSam wrote:^^ already said that
I explained it and didn't just said "Use the above - should work." :P

Posted: February 20th, 2008, 11:16 pm
by topher
Whoops - KS hit the edit button!!

I lose.
LOL