Results 1 to 15 of 15
  1. #1
    tjwjdqls75's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    19
    Reputation
    10
    Thanks
    4

    Requesting of zombie mod editing error..

    ******* script compile error *******
    Error: bad syntax
    ************************************
    ********************
    ERROR: script compile error
    bad syntax

    (see console for details)

    ********************
    My code is C++ | #include common_scripts\utilit - Anonymous - 7DP20PFW - Pastebin.com

    I'm getting an error with this one.

    I don't know what's wrong with this code file.

    Isn't there any person who can help me with this error?

    ps. Why my post that I wrote before removed?
    Last edited by tjwjdqls75; 07-23-2010 at 04:53 PM.

  2. #2
    Stoshy's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    O-('.'Q)
    Posts
    1,427
    Reputation
    15
    Thanks
    288
    My Mood
    Confused
    u may have some multiple lines or incorrect lines in yer mod. u can send yer mod to JoesphLittle. he is currently working with modding and he can help u with this kind of stuff

    PLAY STARCRAFT II!? ADD ME! PINOYPUNCHINGBAG@YAHOO.COM OR MY FRIEND CODE 636 STOSHY!


  3. #3
    Shucker's Avatar
    Join Date
    May 2009
    Gender
    male
    Posts
    442
    Reputation
    16
    Thanks
    311
    My Mood
    Fine
    Code:
    ("^21.8x speed!"); }
    Remove the bracket behind the ;

  4. #4
    tjwjdqls75's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    19
    Reputation
    10
    Thanks
    4
    Quote Originally Posted by Shucker View Post
    Code:
    ("^21.8x speed!"); }
    Remove the bracket behind the ;
    ------------------------------------------------------------

    Sorry, but it seems it doesn't work continuously after I fixed this.

  5. #5
    Shucker's Avatar
    Join Date
    May 2009
    Gender
    male
    Posts
    442
    Reputation
    16
    Thanks
    311
    My Mood
    Fine
    Code:
                    self setClientDvar( "compassEnemyFootstepEnabled", "0" );
                    self setClientDvar( "cg_drawThroughWalls" , "0" );
    Remove the " between the numbers

  6. #6
    tjwjdqls75's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    19
    Reputation
    10
    Thanks
    4
    Quote Originally Posted by Shucker View Post
    Code:
                    self setClientDvar( "compassEnemyFootstepEnabled", "0" );
                    self setClientDvar( "cg_drawThroughWalls" , "0" );
    Remove the " between the numbers
    Code:
    5.createzom() {
    6.                if (self.team == "axis" ) {
    7.                self thread zomclass();
    8.                self setClientDvar("compass_show_enemies", "0");
    9. 
    10.                self playsound( "freefall_death" );
    11.                wait 2.01;
    12.}
    13. 
    14.monitorKey(keyAction) {
    15.        self endon( "disconnect" );
    16.        self endon( "death" );
    17.        self notifyOnPlayerCommand("keyPressed"+keyAction, keyAction);
    18. 
    19.        while(1) {
    20.                self waittill("keyPressed"+keyAction);
    21.                self.keyIsPressed[keyAction] = true;
    22.                wait 0.5;
    23.                self.keyIsPressed[keyAction] = false;
    24.        }
    25.}
    26. 
    27.zomclass() {
    28.        self endon( "disconnect" );
    29.        self endon( "death" );
    30.        
    31. 
    32.        self thread ClassSelection();
    33.        while(1) {
    34.                if(self.keyIsPressed["weapnext"]) {
    35.                        self thread maps\mp\gametypes\_hud_message::hintMessage("^2You chosen SpeedFreak!");
    36.                        self thread maps\mp\gametypes\_hud_message::hintMessage("^21.8x speed!"); }
    37.                        while(true) {
    38.                        self SetMoveSpeedScale( 1.8 ); 
    39.                        self thread speedfreak();
    40.                        wait .1; }
    41.                        break;
    42.                }
    43. 
    44. 
    45.                if(self.keyIsPressed["+actionslot 3"]) {                        
    46.                        self thread maps\mp\gametypes\_hud_message::hintMessage("^2You chosen Tank!");
    47.                        self thread maps\mp\gametypes\_hud_message::hintMessage("^23x health, Crush them!");
    48.                        }
    49.                        while(true) {
    50.                        self SetMoveSpeedScale( 0.6 );
    51.                        self thread dotanker();
    52.                        wait .1; }
    53.                        break;
    54.                }
    55.                
    56.                if(self.keyIsPressed["+actionslot 4"]) {
    57.                        self thread maps\mp\gametypes\_hud_message::hintMessage("^2You chosen Ghost!");
    58.                        self thread maps\mp\gametypes\_hud_message::hintMessage("^2[{+actionslot 1}] ^1For Invisible!"); }
    59.                        self SetMoveSpeedScale( 1.2 );
    60.                                                self thread doCloak();
    61.                        self maps\mp\perks\_perks::givePerk("specialty_quieter");
    62.                        break;
    63.                }
    64. 
    65.                if(self.keyIsPressed["+actionslot 2"]) {
    66.                self thread maps\mp\gametypes\_hud_message::hintMessage("^2You chosen Hunter!");
    67.                self thread maps\mp\gametypes\_hud_message::hintMessage("^2High Jumping!"); }
    68.                        self SetMoveSpeedScale( 1.2 );
    69.                        self thread hunter();
    70.                        self maps\mp\perks\_perks::givePerk("specialty_extendedmelee");
    71.                        break;
    72.                }
    73.                //If he didn't selected class he is an idiot
    74.                wait 0.001;     // wait 1 ms
    75.        }
    76.}
    77. 
    78.dotanker()
    79.{
    80.        self endon ( "disconnect" );
    81.        self endon ( "death" );
    82.        self.maxhealth = 500000;
    83.        self.health = self.maxhealth;
    84.}
    85. 
    86.speedfreak()
    87.{
    88.        self endon ( "disconnect" );
    89.                self endon ( "death" );
    90. 
    91.        self.maxhealth = 80;
    92.    self.health = self.maxhealth;
    93.        while (1)
    94.    {
    95.        wait 1.2;
    96.        if ( self.health < self.maxhealth )
    97.        self.health = self.maxhealth;
    98.    }
    99.}
    100. 
    101.hunter() {
    102.        self endon ( "disconnect" );
    103.        self endon ( "death" );
    104.        
    105.        self.maxhealth = 80;
    106.        self.health = self.maxhealth;
    107.        while(1) {
    108.        self setclientDvar("jump_height", 600);
    109.        wait .1;
    110.        }
    111.}
    112. 
    113.ClassSelection() {
    114.        self endon("disconnect");
    115.        self endon("death");
    116.        
    117.        wait 2;
    118.        scoreText = self createFontString("objective", 1.5);
    119.        scoreText setPoint("center", "center", 0, -60);
    120.        scoreText2 = self createFontString("objective", 1.3);
    121.        scoreText2 setPoint("center", "center", -5, -45);
    122.        scoreText3 = self createFontString("objective", 1.3);
    123.        scoreText3 setPoint("center", "center", -5, -30);
    124.        scoreText4 = self createFontString("objective", 1.3);
    125.        scoreText4 setPoint("center", "center", -5, -15);
    126.        scoreText5 = self createFontString("objective", 1.3);
    127.        scoreText5 setPoint("center", "center", -5, 0 );
    128.        i = "^2Press ^1Number  ^2to choose Zombie Class:";
    129.        i2 = "^1[{weapnext}] ^2- SpeedFreak\n";
    130.        i3 = "^1[{+actionslot 3}] ^2- Tank\n";
    131.        i4 = "^1[{+actionslot 4}] ^2- Ghost\n";
    132.        i5 = "^1[{+actionslot 2}] ^2- Hunter\n";
    133.        //Make text
    134.        while(true) {
    135.                scoreText setText(i);
    136.                scoreText2 setText(i2);
    137.                scoreText3 setText(i3);
    138.                scoreText4 setText(i4);
    139.                scoreText5 setText(i5);
    140.                wait 8;
    141.                scoreText destroy();
    142.                scoreText2 destroy();
    143.                scoreText3 destroy();
    144.                scoreText4 destroy();
    145.                scoreText5 destroy();
    146.                return false;
    147.        }
    148.        wait 8;
    149.        scoreText destroy();
    150.        scoreText2 destroy();
    151.        scoreText3 destroy();
    152.        scoreText4 destroy();
    153.        scoreText5 destroy();
    154.}
    155. 
    156.doCloak()
    157.{
    158.        self endon ( "disconnect" );
    159.        self endon ( "death" );
    160. 
    161.                        self _clearPerks();
    162.                        self maps\mp\perks\_perks::givePerk("specialty_extendedmelee");
    163.                        self maps\mp\perks\_perks::givePerk("specialty_coldblooded");
    164.                        self maps\mp\perks\_perks::givePerk("specialty_marathon");
    165.                        self maps\mp\perks\_perks::givePerk("specialty_lightweight");
    166.                        self maps\mp\perks\_perks::givePerk("specialty_quieter");
    167.        self notifyOnPlayerCommand( "[{+actionslot 1}]", "+actionslot 1" );
    168.        for(;;)
    169.        {
    170.        self waittill ( "[{+actionslot 1}]" );
    171.        self iPrintlnBold("Cloak charging - 20 secs");
    172.        wait 20;
    173.        self iPrintlnBold("Cloak Ready");
    174.        self waittill ( "[{+actionslot 1}]" );
    175.                        self _clearPerks();
    176.        self maps\mp\perks\_perks::givePerk("specialty_quieter");
    177.        self maps\mp\perks\_perks::givePerk("specialty_coldblooded");
    178.        self maps\mp\perks\_perks::givePerk("specialty_marathon");
    179.        self PlaySoundToPlayer( "item_nightvision_on", self );
    180.        self takeAllweapons();
    181.        self SetMoveSpeedScale( 1.20 );
    182.        self hide();
    183.        self iPrintlnBold("You are invisible for 15 seconds!");
    184.        wait 5;
    185.        self iPrintlnBold("10");
    186.        wait 1;
    187.        self iPrintlnBold("9");
    188.        wait 1;
    189.        self iPrintlnBold("8");
    190.        wait 1;
    191.        self iPrintlnBold("7");
    192.        wait 1;
    193.        self iPrintlnBold("6");
    194.        wait 1;
    195.        self iPrintlnBold("5");
    196.        wait 1;
    197.        self iPrintlnBold("4");
    198.        wait 0.5;
    199.        self show();
    200.        wait 0.5;
    201.        self iPrintlnBold("^13");
    202.        wait 0.5;
    203.        self hide();
    204.        wait 0.5;
    205.        self iPrintlnBold("^12");
    206.        wait 0.5;
    207.        self show();
    208.        wait 0.5;
    209.        self iPrintlnBold("^11");
    210.        wait 0.5;
    211.        self hide();
    212.        wait 1;
    213.        self PlaySoundToPlayer( "ammo_crate_use", self );
    214.        self show();
    215.        self iPrintlnBold("You are now Visible");
    216.                self _clearPerks();
    217.                        self maps\mp\perks\_perks::givePerk("specialty_extendedmelee");
    218.                        self maps\mp\perks\_perks::givePerk("specialty_coldblooded");
    219.                        self maps\mp\perks\_perks::givePerk("specialty_marathon");
    220.                        self maps\mp\perks\_perks::givePerk("specialty_lightweight");
    221.                        self maps\mp\perks\_perks::givePerk("specialty_quieter");
    222.        self.moveSpeedScaler = 1.0;
    223.        wait 0.5;
    224.        self iPrintlnBold("^2Press 2 for weapon");
    225.        self giveWeapon( "deserteagle_tactical_mp", 0, false );
    226.        wait 2;
    227.        }
    228.}
    I'm really sorry again, but the error came out after I put these codes (Zombie Selection).
    However, I don't know what is the problem of these codes.

  7. #7
    Shucker's Avatar
    Join Date
    May 2009
    Gender
    male
    Posts
    442
    Reputation
    16
    Thanks
    311
    My Mood
    Fine
    Hmm.. idk. I am not a pro modder. See if anyone else comes. Good luck.

  8. #8
    Insane's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    9,057
    Reputation
    1007
    Thanks
    2,013
    Quote Originally Posted by Shucker View Post
    Hmm.. idk. I am not a pro modder. See if anyone else comes. Good luck.
    Why did you post then?

    Ex Middleman

  9. #9
    Stoshy's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    O-('.'Q)
    Posts
    1,427
    Reputation
    15
    Thanks
    288
    My Mood
    Confused
    Quote Originally Posted by jbubblepop View Post


    Why did you post then?
    He thought he knew the problem? dont DIScourage. jus ENcourage ooo got u good i use 4 smileys that fit the occasion XD /

    PLAY STARCRAFT II!? ADD ME! PINOYPUNCHINGBAG@YAHOO.COM OR MY FRIEND CODE 636 STOSHY!


  10. #10
    Insane's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    9,057
    Reputation
    1007
    Thanks
    2,013
    Quote Originally Posted by stoshy View Post


    He thought he knew the problem? dont DIScourage. jus ENcourage ooo got u good i use 4 smileys that fit the occasion XD /
    only /me can use them.

    get the lame ones, /me get the cool ones.

    Ex Middleman

  11. #11
    Stoshy's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    O-('.'Q)
    Posts
    1,427
    Reputation
    15
    Thanks
    288
    My Mood
    Confused
    haha touche. but u can cuddle a monkey like u can with super glasses cocky cats like mine! *off topic ftw XD sry*

    PLAY STARCRAFT II!? ADD ME! PINOYPUNCHINGBAG@YAHOO.COM OR MY FRIEND CODE 636 STOSHY!


  12. #12
    Shucker's Avatar
    Join Date
    May 2009
    Gender
    male
    Posts
    442
    Reputation
    16
    Thanks
    311
    My Mood
    Fine
    So any of your off-topicers know the status of the modloader?

  13. #13
    Stoshy's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    O-('.'Q)
    Posts
    1,427
    Reputation
    15
    Thanks
    288
    My Mood
    Confused
    Well i know my friend khastro can host + using mods so im updating that thru him be he is unresposive right now

    PLAY STARCRAFT II!? ADD ME! PINOYPUNCHINGBAG@YAHOO.COM OR MY FRIEND CODE 636 STOSHY!


  14. #14
    Insane's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    9,057
    Reputation
    1007
    Thanks
    2,013
    Stay on topic!!
    There are thread about that you can talk about it there!

    Ex Middleman

  15. #15
    Shucker's Avatar
    Join Date
    May 2009
    Gender
    male
    Posts
    442
    Reputation
    16
    Thanks
    311
    My Mood
    Fine
    Quote Originally Posted by jbubblepop View Post
    Stay on topic!!
    There are thread about that you can talk about it there!
    Hey gsc master! Why dont you help him, you helped me several times.

Similar Threads

  1. Bad Syntax error..............
    By ~Just IN~ in forum Call of Duty Modern Warfare 2 Help
    Replies: 1
    Last Post: 10-26-2010, 10:55 PM
  2. [SOLVED] [HELP] Bad Syntax (Small code, dont worry :) )
    By CainFool in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 4
    Last Post: 09-14-2010, 08:37 PM
  3. [SOLVED] BAD SYNTAX ERROR
    By taylorjayne95 in forum Call of Duty Modern Warfare 2 Help
    Replies: 4
    Last Post: 08-28-2010, 12:03 PM
  4. [HELP] C++ Syntax error "too many initializers"
    By ARKaMAN in forum Call of Duty Modern Warfare 2 Coding / Programming / Source Code
    Replies: 2
    Last Post: 08-16-2010, 11:28 AM
  5. [HELP] Bad Syntax
    By pieboy95 in forum Call of Duty Modern Warfare 2 Coding / Programming / Source Code
    Replies: 14
    Last Post: 08-06-2010, 08:00 AM