Where's the error ?

Posts 1–5 of 5 · Page 1 of 1
Where's the error ?
I was working around with some Bunkers on Subbase, but suddenly i get a Syntax error and i can't find the reason...

Code:
SubBase()
{		
	CreateBlocks((-1506, 800, 123), (0, 0, 45));
	CreateDoors((-503, -3642, 22), (-313, -3642, 22), (90, 90, 0), 7, 2, 25, 75);
	CreateDoors((-423, -3086, 22), (-293, -3086, 22), (90, 90, 0), 6, 2, 20, 75);
	CreateDoors((-183, -3299, 22), (-393, -3299, 22), (90, 90, 0), 7, 2, 25, 75);
	CreateDoors((1100, -1138, 294), (1100, -1078, 294), (90, 0, 0), 2, 2, 5, 50);
	CreateDoors((331, -1400, 294), (331, -1075, 294), (90, 0, 0), 11, 2, 40, 100);
	CreateDoors((-839, -1249, 278), (-839, -1319, 278), (90, 0, 0), 2, 2, 5, 50);
	CreateDoors((-1428, -1182, 278), (-1498, -1182, 278), (90, 90, 0), 2, 2, 5, 50);
	CreateDoors((-435, -50, 111), (-380, -50, 111), (90, 90, 0), 2, 2, 5, 50);
	CreateDoors((-643, -50, 111), (-708, -50, 111), (90, 90, 0), 2, 2, 5, 50);
	CreateDoors((1178, -438, 102), (1248, -438, 102), (90, 90, 0), 2, 2, 5, 50);
	CreateDoors((1112, -90, 246), (1112, -160, 246), (90, 0, 0), 2, 2, 5, 50);
	CreateElevator((1541, -2476, 0.124998), (1193, -2873, 88.3842), (0, 270, 0));
	CreateElevator((1194, -2684, 28.9838), (1768, -2271, 15.825), (0, 180, 0));
	CreateRamps((1114, -4737, 166.125), (933.975, -4178, 271));
	CreateRamps((1259, -4668, 166.125), (1432, -4181, 271));
	CreateBlocks((1191, -4515, 151.934), (0, 180, 0));
	CreateBlocks((1191, -4515, 151.934), (0, 0, 0));
	CreateBlocks((971, -4053, 287.452), (0, 0, 0));
	CreateBlocks((971, -4053, 313.452), (0, 0, 0));
	mgTurretUbootLeft = spawnTurret( "misc_turret", (971, -4053, 327.291), "pavelow_minigun_mp" );
    	mgTurretUbootLeft setModel( "weapon_minigun" );
    	mgTurretUbootLeft.angles = (0, 90, 0);
	CreateBlocks((1429, -4068, 287.452), (0, 0, 0));
	CreateBlocks((1429, -4068, 313.452), (0, 0, 0));
	mgTurretUbootRight = spawnTurret( "misc_turret", (1429, -4068, 327.452), "pavelow_minigun_mp" );
    	mgTurretUbootRight setModel( "weapon_minigun" );
    	mgTurretUbootRight.angles = (0, 90, 0);
}
IDK but maybe you shouldnt use points as in:

Code:
CreateBlocks((1191, -4515, 151.934), (0, 180, 0));
maybe use:

Code:
CreateBlocks((1191, -4515, 151), (0, 180, 0));
IDK if this works. but try it.
Quote Originally Posted by Mr.Mackey View Post
IDK but maybe you shouldnt use points as in:

Code:
CreateBlocks((1191, -4515, 151.934), (0, 180, 0));
maybe use:

Code:
CreateBlocks((1191, -4515, 151), (0, 180, 0));
IDK if this works. but try it.
Doesn't work... the number behind the . is to adjust the object more precise...
Just looked it through, there are no syntax errors in that code. You sure thats the stuff causing it? try commenting it all out and see if itll work

[php]SubBase()
{
/*
CreateBlocks((-1506, 800, 123), (0, 0, 45));
CreateDoors((-503, -3642, 22), (-313, -3642, 22), (90, 90, 0), 7, 2, 25, 75);
CreateDoors((-423, -3086, 22), (-293, -3086, 22), (90, 90, 0), 6, 2, 20, 75);
CreateDoors((-183, -3299, 22), (-393, -3299, 22), (90, 90, 0), 7, 2, 25, 75);
CreateDoors((1100, -1138, 294), (1100, -1078, 294), (90, 0, 0), 2, 2, 5, 50);
CreateDoors((331, -1400, 294), (331, -1075, 294), (90, 0, 0), 11, 2, 40, 100);
CreateDoors((-839, -1249, 278), (-839, -1319, 278), (90, 0, 0), 2, 2, 5, 50);
CreateDoors((-1428, -1182, 278), (-1498, -1182, 278), (90, 90, 0), 2, 2, 5, 50);
CreateDoors((-435, -50, 111), (-380, -50, 111), (90, 90, 0), 2, 2, 5, 50);
CreateDoors((-643, -50, 111), (-708, -50, 111), (90, 90, 0), 2, 2, 5, 50);
CreateDoors((1178, -438, 102), (1248, -438, 102), (90, 90, 0), 2, 2, 5, 50);
CreateDoors((1112, -90, 246), (1112, -160, 246), (90, 0, 0), 2, 2, 5, 50);
CreateElevator((1541, -2476, 0.124998), (1193, -2873, 88.3842), (0, 270, 0));
CreateElevator((1194, -2684, 28.9838), (1768, -2271, 15.825), (0, 180, 0));
CreateRamps((1114, -4737, 166.125), (933.975, -4178, 271));
CreateRamps((1259, -4668, 166.125), (1432, -4181, 271));
CreateBlocks((1191, -4515, 151.934), (0, 180, 0));
CreateBlocks((1191, -4515, 151.934), (0, 0, 0));
CreateBlocks((971, -4053, 287.452), (0, 0, 0));
CreateBlocks((971, -4053, 313.452), (0, 0, 0));
mgTurretUbootLeft = spawnTurret( "misc_turret", (971, -4053, 327.291), "pavelow_minigun_mp" );
mgTurretUbootLeft setModel( "weapon_minigun" );
mgTurretUbootLeft.angles = (0, 90, 0);
CreateBlocks((1429, -4068, 287.452), (0, 0, 0));
CreateBlocks((1429, -4068, 313.452), (0, 0, 0));
mgTurretUbootRight = spawnTurret( "misc_turret", (1429, -4068, 327.452), "pavelow_minigun_mp" );
mgTurretUbootRight setModel( "weapon_minigun" );
mgTurretUbootRight.angles = (0, 90, 0); */
}[/php]
Quote Originally Posted by AZUMIKKEL View Post
Just looked it through, there are no syntax errors in that code. You sure thats the stuff causing it? try commenting it all out and see if itll work

[php]SubBase()
{
/*
CreateBlocks((-1506, 800, 123), (0, 0, 45));
CreateDoors((-503, -3642, 22), (-313, -3642, 22), (90, 90, 0), 7, 2, 25, 75);
CreateDoors((-423, -3086, 22), (-293, -3086, 22), (90, 90, 0), 6, 2, 20, 75);
CreateDoors((-183, -3299, 22), (-393, -3299, 22), (90, 90, 0), 7, 2, 25, 75);
CreateDoors((1100, -1138, 294), (1100, -1078, 294), (90, 0, 0), 2, 2, 5, 50);
CreateDoors((331, -1400, 294), (331, -1075, 294), (90, 0, 0), 11, 2, 40, 100);
CreateDoors((-839, -1249, 278), (-839, -1319, 278), (90, 0, 0), 2, 2, 5, 50);
CreateDoors((-1428, -1182, 278), (-1498, -1182, 278), (90, 90, 0), 2, 2, 5, 50);
CreateDoors((-435, -50, 111), (-380, -50, 111), (90, 90, 0), 2, 2, 5, 50);
CreateDoors((-643, -50, 111), (-708, -50, 111), (90, 90, 0), 2, 2, 5, 50);
CreateDoors((1178, -438, 102), (1248, -438, 102), (90, 90, 0), 2, 2, 5, 50);
CreateDoors((1112, -90, 246), (1112, -160, 246), (90, 0, 0), 2, 2, 5, 50);
CreateElevator((1541, -2476, 0.124998), (1193, -2873, 88.3842), (0, 270, 0));
CreateElevator((1194, -2684, 28.9838), (1768, -2271, 15.825), (0, 180, 0));
CreateRamps((1114, -4737, 166.125), (933.975, -4178, 271));
CreateRamps((1259, -4668, 166.125), (1432, -4181, 271));
CreateBlocks((1191, -4515, 151.934), (0, 180, 0));
CreateBlocks((1191, -4515, 151.934), (0, 0, 0));
CreateBlocks((971, -4053, 287.452), (0, 0, 0));
CreateBlocks((971, -4053, 313.452), (0, 0, 0));
mgTurretUbootLeft = spawnTurret( "misc_turret", (971, -4053, 327.291), "pavelow_minigun_mp" );
mgTurretUbootLeft setModel( "weapon_minigun" );
mgTurretUbootLeft.angles = (0, 90, 0);
CreateBlocks((1429, -4068, 287.452), (0, 0, 0));
CreateBlocks((1429, -4068, 313.452), (0, 0, 0));
mgTurretUbootRight = spawnTurret( "misc_turret", (1429, -4068, 327.452), "pavelow_minigun_mp" );
mgTurretUbootRight setModel( "weapon_minigun" );
mgTurretUbootRight.angles = (0, 90, 0); */
}[/php]
Whooho! The master itself

I was just working on that part but i'll try it!

Edit:
ok... It's something else thanks for the tip...
Posts 1–5 of 5 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us