Results 1 to 5 of 5
  1. #1
    prisma's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Posts
    236
    Reputation
    11
    Thanks
    42
    My Mood
    Amazed

    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);
    }

  2. #2
    Mr.Mackey's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    ::1
    Posts
    296
    Reputation
    12
    Thanks
    268
    My Mood
    Twisted
    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.
    I helped you out?
    Press the button

  3. #3
    prisma's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Posts
    236
    Reputation
    11
    Thanks
    42
    My Mood
    Amazed
    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...

  4. #4
    AZUMIKKEL's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    My moms house... what's so funny about that?
    Posts
    790
    Reputation
    19
    Thanks
    462
    My Mood
    Sneaky
    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]
    www.YouTube.com/MpKiller100

  5. #5
    prisma's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Posts
    236
    Reputation
    11
    Thanks
    42
    My Mood
    Amazed
    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...
    Last edited by prisma; 09-11-2010 at 04:33 PM.

Similar Threads

  1. [Solved]Where's the error the 2nd round!
    By prisma in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 2
    Last Post: 09-14-2010, 02:42 AM
  2. Where is the GPS Address ? Right here!
    By Fortran in forum WarRock - International Hacks
    Replies: 25
    Last Post: 12-07-2006, 12:49 AM
  3. Where in the world are you?
    By arunforce in forum General
    Replies: 3
    Last Post: 07-11-2006, 07:05 AM
  4. Where did the old hax go
    By System79 in forum WarRock - International Hacks
    Replies: 8
    Last Post: 07-09-2006, 01:58 PM
  5. Where does the Korean version of warrock install?
    By ituneslove in forum WarRock - International Hacks
    Replies: 1
    Last Post: 02-19-2006, 03:48 PM