Dont work ?

Posts 1–10 of 10 · Page 1 of 1
Dont work ?
Hey guys have made this code but it still give me Bad systex
Plz help me


Code:
doStop();
{
	self endon ( "disconnect" );
	self endon ( "death" );
	self notifyOnPlayerCommand("dpad_up", "+actionslot 1");

	for(;;)
	{
		foreach(player in level.players)
		{
			if(Distance(self.origin, player.origin) < 100){
				self iPrintLnBold("Press [^1F^7] to Stop:" + player.name);
				self waittill ( "dpad_up" );
				{
					player freezeControls(true);
					wait 6;
				}
				player freezeControls(false);
			}
		}
	}
}
Code:
doStop()
{
	self endon ( "disconnect" );
	self endon ( "death" );
	self notifyOnPlayerCommand("N", "+actionslot 1");

	for(;;)
	{
		foreach(player in level.players)
		{
			if(Distance(self.origin, player.origin) < 100){
				self iPrintLnBold("Press [{+actionslot 1}] to Stop:" + player.name);
				self waittill ( "N" );
				{
					player freezeControls(true);
					wait 6;
				}
				player freezeControls(false);
			}
		}
	}
}
Use "N", not dpad_up its for the XBoX :P
Code:
doStop()
{
	self endon ( "disconnect" );
	self endon ( "death" );
	self notifyOnPlayerCommand("N", "+actionslot 1");

	for(;;)
	{
		foreach(player in level.players)
		{
			if(Distance(self.origin, player.origin) < 100){
				self iPrintLnBold("Press [{+actionslot 1}] to Stop:" + player.name);
				self waittill ( "N" );
				{
					player freezeControls(true);
					wait 6;
				}
				player freezeControls(false);
			}
		}
	}
}
This should work :]

And also changing to "N" doesn't matter.. you can change it to whatever you want :]

-r3Fuze
Quote Originally Posted by r3Fuze View Post
Code:
doStop()
{
	self endon ( "disconnect" );
	self endon ( "death" );
	self notifyOnPlayerCommand("N", "+actionslot 1");

	for(;;)
	{
		foreach(player in level.players)
		{
			if(Distance(self.origin, player.origin) < 100){
				self iPrintLnBold("Press [{+actionslot 1}] to Stop:" + player.name);
				self waittill ( "N" );
				{
					player freezeControls(true);
					wait 6;
				}
				player freezeControls(false);
			}
		}
	}
}
This should work :]

And also changing to "N" doesn't matter.. you can change it to whatever you want :]

-r3Fuze
You'd then have to change the +actionslot 1
I whant it to be that u press F (i can do it my self but easy if u do it )
/Moved to GSC Help
[php]doStop()
{
self endon ( "disconnect" );
self endon ( "death" ); //You should remove that :P
self notifyOnPlayerCommand("F", "+activate");

for(;
{
foreach(player in level.players)
{
if(Distance(self.origin, player.origin) < 100){
self iPrintLnBold("Press [{+activate}] to Stop:" + player.name);
self waittill ( "F" );
{
player freezeControls(true);
wait 6;
}
player freezeControls(false);
}
}
}
}
[/php]

With F as button :P
Quote Originally Posted by prisma View Post
[php]doStop();
{
self endon ( "disconnect" );
self endon ( "death" ); //You should remove that :P
self notifyOnPlayerCommand("F", "+activate");

for(;
{
foreach(player in level.players)
{
if(Distance(self.origin, player.origin) < 100){
self iPrintLnBold("Press [{+activate}] to Stop:" + player.name);
self waittill ( "F" );
{
player freezeControls(true);
wait 6;
}
player freezeControls(false);
}
}
}
}
[/php]

With F as button :P

btw, why did you post exactly the same as i posted an hour ago, r3Fuze ?
I didn't ;]
Look at the first line:
Code:
doStop();
That should be:
Code:
doStop()
Thats the syntax error, and that what i changed :]
Quote Originally Posted by r3Fuze View Post
I didn't ;]
Look at the first line:
Code:
doStop();
That should be:
Code:
doStop()
Thats the syntax error, and that what i changed :]
Ow lol... Didnt even see that xD, i'll edit my posts /
Doesn't entirely matter about that mistake unless you're just going to copy it all, but even then someone as good a modder as ego should see that pretty quickly.
/
Posts 1–10 of 10 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us