Error in my script

Tutorials for Call of Duty 4 mapping

Moderator: Core Staff

Post Reply
Fatalicious
CJ Wannabe
CJ Wannabe
Posts: 1
Joined: April 4th, 2014, 5:05 pm

Error in my script

Post by Fatalicious » April 10th, 2014, 9:35 pm

Hello, i'm making a deathrun map, and I get an error when compiling the map in this part :

Code: Select all

trap4()
{
        trap4=getent("trap4","targetname");
	trap4_trigger=getent("trap4_trigger","targetname");
	while(1)
	{
                trap4_trigger waittill ("trigger");
                trap4 movez (224,4,1,1);
		wait(10)
		trap4 movez (-224,4,1,1);
		wait(4)
	}
}
The error show me this line :

Code: Select all

trap4 movez (-224,4,1,1);
Can you help me ? Actually it's a door dat pop out of the floor, and then after wait(10), get back into the floor at the initial position. The door is "trap4" and the activation button is "trap4_trigger"

Thanks

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

Re: Error in my script

Post by Pedsdude » April 18th, 2014, 6:15 pm

You need ;'s after your wait lines:
trap4()
{
trap4=getent("trap4","targetname");
trap4_trigger=getent("trap4_trigger","targetname");
while(1)
{
trap4_trigger waittill ("trigger");
trap4 movez (224,4,1,1);
wait(10);
trap4 movez (-224,4,1,1);
wait(4);
}
}
Image
Image

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests