compie error

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

Moderator: Core Staff

Locked
creator
CJ Worshipper
CJ Worshipper
Posts: 492
Joined: July 6th, 2006, 11:37 pm
Location: The Netherlands
Contact:

compie error

Post by creator » August 10th, 2006, 12:12 am

Code: Select all

******* script compile error *******
bad syntax: (file 'maps\mp\roltrap1.gsc', line 30)
{

*
************************************
********************
can some 1 help me with this problem
i keep trying to fix but nothing helps :?

Code: Select all

main()
{
thread roltrap1 ();
thread roltrap2 ();
thread roltrap3 ();
thread roltrap4 ();
thread roltrap5 ();
thread roltrap6 ();
thread roltrap7 ();
thread roltrap8 ();

}

roltrap1 ()
{
trap1 = getent ("roltrap1" , "targetname");
trig = getent ("rol_trig" , "targetname");
while (1)
{
trig waittill ("trigger");
trap1 moveto  ((100,200,300), 7); 
trap1 waittill ("movedone");
wait (4);
trap1 moveto ((120,220,320), 7);  //// ure brush will move to them co-ordinates in one second
trap1 waittill ("movedone");
wait (2);


roltrap2 ()
{
trap2 = getent ("roltrap2" , "targetname");
trig = getent ("rol_trig" , "targetname");
while (1)
{
trig waittill ("trigger");
trap2 moveto  ((100,200,300), 7);
trap2 waittill ("movedone");
wait (4);
trap2 moveto ((120,220,320), 7);
trap2 waittill ("movedone");
wait (2);


roltrap3 ()
{
trap3 = getent ("roltrap3" , "targetname");
trig = getent ("rol_trig" , "targetname");
while (1)
{
trig waittill ("trigger");
trap3 moveto  ((100,200,300), 7);
trap3 waittill ("movedone");
wait (4);
trap3 moveto ((120,220,320), 7);
trap3 waittill ("movedone");
wait (2);


roltrap4 ()
{
trap4 = getent ("roltrap4" , "targetname");
trig = getent ("rol_trig" , "targetname");
while (1)
{
trig waittill ("trigger");
trap4 moveto  ((100,200,300), 7);
trap4 waittill ("movedone");
wait (4);
trap4 moveto ((120,220,320), 7);
trap4 waittill ("movedone");
wait (2);

roltrap5 ()
{
trap5 = getent ("roltrap5" , "targetname");
trig = getent ("rol_trig" , "targetname");
while (1)
{
trig waittill ("trigger");
trap5 moveto  ((100,200,300), 7);
trap5 waittill ("movedone");
wait (4);
trap5 moveto ((120,220,320), 7);
trap5 waittill ("movedone");
wait (2);

roltrap6 ()
{
trap6 = getent ("roltrap6" , "targetname");
trig = getent ("rol_trig" , "targetname");
while (1)
{
trig waittill ("trigger");
trap6 moveto  ((100,200,300), 7);
trap6 waittill ("movedone");
wait (4);
trap6 moveto ((120,220,320), 7);
trap6 waittill ("movedone");
wait (2);

roltrap7 ()
{
trap7 = getent ("roltrap7" , "targetname");
trig = getent ("rol_trig" , "targetname");
while (1)
{
trig waittill ("trigger");
trap7 moveto  ((100,200,300), 7);
trap7 waittill ("movedone");
wait (4);
trap7 moveto ((120,220,320), 7);
trap7 waittill ("movedone");
wait (2);

roltrap8 ()
{
trap8 = getent ("roltrap8" , "targetname");
trig = getent ("rol_trig" , "targetname");
while (1)
{
trig waittill ("trigger");
trap8 moveto  ((100,200,300), 7);
trap8 waittill ("movedone");
wait (4);
trap8 moveto ((120,220,320), 7);
trap8 waittill ("movedone");
wait (2);
}
}
Cod 1 Mapper&Modder&Moddeler

creator
CJ Worshipper
CJ Worshipper
Posts: 492
Joined: July 6th, 2006, 11:37 pm
Location: The Netherlands
Contact:

Post by creator » August 10th, 2006, 12:16 am

o i see
but thats over 30 lines?

Code: Select all

******* script compile error *******
bad syntax: (file 'maps\mp\roltrap1.gsc', line 30)
{

*
************************************
********************
still got the error its not that
Cod 1 Mapper&Modder&Moddeler

creator
CJ Worshipper
CJ Worshipper
Posts: 492
Joined: July 6th, 2006, 11:37 pm
Location: The Netherlands
Contact:

Post by creator » August 10th, 2006, 12:17 am

uhm? what u mean?
and i still got the same error
Cod 1 Mapper&Modder&Moddeler

creator
CJ Worshipper
CJ Worshipper
Posts: 492
Joined: July 6th, 2006, 11:37 pm
Location: The Netherlands
Contact:

Post by creator » August 10th, 2006, 12:25 am

Code: Select all

main()
{
thread roltrap1 ();
thread roltrap2 ();
thread roltrap3 ();
thread roltrap4 ();
thread roltrap5 ();
thread roltrap6 ();
thread roltrap7 ();
thread roltrap8 ();

}

roltrap1 ()
{
trap1 = getent ("roltrap1" , "targetname");
trig = getent ("rol_trig" , "targetname");
while (1)
{
trig waittill ("trigger");
trap1 moveto  ((100,200,300), 7); 
trap1 waittill ("movedone");
wait (4);
trap1 moveto ((120,220,320), 7);  //// ure brush will move to them co-ordinates in one second
trap1 waittill ("movedone");
wait (2);

}

roltrap2 ()
{
trap2 = getent ("roltrap2" , "targetname");
trig = getent ("rol_trig" , "targetname");
while (1)
{
trig waittill ("trigger");
trap2 moveto  ((100,200,300), 7);
trap2 waittill ("movedone");
wait (4);
trap2 moveto ((120,220,320), 7);
trap2 waittill ("movedone");
wait (2);

}

roltrap3 ()
{
trap3 = getent ("roltrap3" , "targetname");
trig = getent ("rol_trig" , "targetname");
while (1)
{
trig waittill ("trigger");
trap3 moveto  ((100,200,300), 7);
trap3 waittill ("movedone");
wait (4);
trap3 moveto ((120,220,320), 7);
trap3 waittill ("movedone");
wait (2);

}

roltrap4 ()
{
trap4 = getent ("roltrap4" , "targetname");
trig = getent ("rol_trig" , "targetname");
while (1)
{
trig waittill ("trigger");
trap4 moveto  ((100,200,300), 7);
trap4 waittill ("movedone");
wait (4);
trap4 moveto ((120,220,320), 7);
trap4 waittill ("movedone");
wait (2);

}


roltrap5 ()
{
trap5 = getent ("roltrap5" , "targetname");
trig = getent ("rol_trig" , "targetname");
while (1)
{
trig waittill ("trigger");
trap5 moveto  ((100,200,300), 7);
trap5 waittill ("movedone");
wait (4);
trap5 moveto ((120,220,320), 7);
trap5 waittill ("movedone");
wait (2);

}

roltrap6 ()
{
trap6 = getent ("roltrap6" , "targetname");
trig = getent ("rol_trig" , "targetname");
while (1)
{
trig waittill ("trigger");
trap6 moveto  ((100,200,300), 7);
trap6 waittill ("movedone");
wait (4);
trap6 moveto ((120,220,320), 7);
trap6 waittill ("movedone");
wait (2);

}

roltrap7 ()
{
trap7 = getent ("roltrap7" , "targetname");
trig = getent ("rol_trig" , "targetname");
while (1)
{
trig waittill ("trigger");
trap7 moveto  ((100,200,300), 7);
trap7 waittill ("movedone");
wait (4);
trap7 moveto ((120,220,320), 7);
trap7 waittill ("movedone");
wait (2);

}

roltrap8 ()
{
trap8 = getent ("roltrap8" , "targetname");
trig = getent ("rol_trig" , "targetname");
while (1)
{
trig waittill ("trigger");
trap8 moveto  ((100,200,300), 7);
trap8 waittill ("movedone");
wait (4);
trap8 moveto ((120,220,320), 7);
trap8 waittill ("movedone");
wait (2);

}
}
Cod 1 Mapper&Modder&Moddeler

creator
CJ Worshipper
CJ Worshipper
Posts: 492
Joined: July 6th, 2006, 11:37 pm
Location: The Netherlands
Contact:

Post by creator » August 10th, 2006, 12:34 am

that script.. didnt help

Code: Select all

bad syntax: (file 'maps\mp\roltrap1.gsc', line 31)
{

*
************************************
********************
Cod 1 Mapper&Modder&Moddeler

User avatar
red_gee
CJ Worshipper
CJ Worshipper
Posts: 203
Joined: May 18th, 2006, 11:57 pm
Location: Outerhaven, Zanzibar Land
Contact:

Post by red_gee » August 10th, 2006, 1:11 am

You still haven't closed them all
Look at the last thread, and then the second last one
Image

creator
CJ Worshipper
CJ Worshipper
Posts: 492
Joined: July 6th, 2006, 11:37 pm
Location: The Netherlands
Contact:

Post by creator » August 10th, 2006, 1:29 am

uhm?
they are closed with a }
if not.. can u post it here with the good stuff...
cause im stupid :P
Cod 1 Mapper&Modder&Moddeler

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13315
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Post by Drofder2004 » August 10th, 2006, 1:32 am

count your brackets...

You have 17 {'s
And 10 }'s

You are missing 7 }'s

Every bracket you open, you MUST close.
Image
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010

creator
CJ Worshipper
CJ Worshipper
Posts: 492
Joined: July 6th, 2006, 11:37 pm
Location: The Netherlands
Contact:

Post by creator » August 10th, 2006, 1:46 am

Code: Select all

main()
{
thread roltrap1 ();
thread roltrap2 ();
thread roltrap3 ();
thread roltrap4 ();
thread roltrap5 ();
thread roltrap6 ();
thread roltrap7 ();
thread roltrap8 ();

}

roltrap1 ()
{
trap1 = getent ("roltrap1" , "targetname");
trig = getent ("rol_trig" , "targetname");
while (1)
{
trig waittill ("trigger");
trap1 moveto  ((100,200,300), 7);
trap1 waittill ("movedone");
wait (4);
trap1 moveto ((120,220,320), 7);  //// ure brush will move to them co-ordinates in one second
trap1 waittill ("movedone");
wait (2);

}
}

roltrap2 ()
{
trap2 = getent ("roltrap2" , "targetname");
trig = getent ("rol_trig" , "targetname");
while (1)
{
trig waittill ("trigger");
trap2 moveto  ((100,200,300), 7);
trap2 waittill ("movedone");
wait (4);
trap2 moveto ((120,220,320), 7);
trap2 waittill ("movedone");
wait (2);

}
}

roltrap3 ()
{
trap3 = getent ("roltrap3" , "targetname");
trig = getent ("rol_trig" , "targetname");
while (1)
{
trig waittill ("trigger");
trap3 moveto  ((100,200,300), 7);
trap3 waittill ("movedone");
wait (4);
trap3 moveto ((120,220,320), 7);
trap3 waittill ("movedone");
wait (2);

}
}

roltrap4 ()
{
trap4 = getent ("roltrap4" , "targetname");
trig = getent ("rol_trig" , "targetname");
while (1)
{
trig waittill ("trigger");
trap4 moveto  ((100,200,300), 7);
trap4 waittill ("movedone");
wait (4);
trap4 moveto ((120,220,320), 7);
trap4 waittill ("movedone");
wait (2);

}
}

roltrap5 ()
{
trap5 = getent ("roltrap5" , "targetname");
trig = getent ("rol_trig" , "targetname");
while (1)
{
trig waittill ("trigger");
trap5 moveto  ((100,200,300), 7);
trap5 waittill ("movedone");
wait (4);
trap5 moveto ((120,220,320), 7);
trap5 waittill ("movedone");
wait (2);

}
}

roltrap6 ()
{
trap6 = getent ("roltrap6" , "targetname");
trig = getent ("rol_trig" , "targetname");
while (1)
{
trig waittill ("trigger");
trap6 moveto  ((100,200,300), 7);
trap6 waittill ("movedone");
wait (4);
trap6 moveto ((120,220,320), 7);
trap6 waittill ("movedone");
wait (2);

}
}

roltrap7 ()
{
trap7 = getent ("roltrap7" , "targetname");
trig = getent ("rol_trig" , "targetname");
while (1)
{
trig waittill ("trigger");
trap7 moveto  ((100,200,300), 7);
trap7 waittill ("movedone");
wait (4);
trap7 moveto ((120,220,320), 7);
trap7 waittill ("movedone");
wait (2);

}
}

roltrap8 ()
{
trap8 = getent ("roltrap8" , "targetname");
trig = getent ("rol_trig" , "targetname");
while (1)
{
trig waittill ("trigger");
trap8 moveto  ((100,200,300), 7);
trap8 waittill ("movedone");
wait (4);
trap8 moveto ((120,220,320), 7);
trap8 waittill ("movedone");
wait (2);

}
}
that good?
Cod 1 Mapper&Modder&Moddeler

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13315
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Post by Drofder2004 » August 10th, 2006, 1:57 am

load up your map and see.
Image
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010

creator
CJ Worshipper
CJ Worshipper
Posts: 492
Joined: July 6th, 2006, 11:37 pm
Location: The Netherlands
Contact:

Post by creator » August 10th, 2006, 2:00 am

yay :)
thx 8)
:P
/closed?
/problem solved
Cod 1 Mapper&Modder&Moddeler

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

Post by Pedsdude » August 10th, 2006, 9:13 pm

mmmmmmmmmmm compie
Image
Image

Locked

Who is online

Users browsing this forum: No registered users and 2 guests