DebateFort - Where Warriors Come To Debate
RAGECRY - Funny, Amusing, Interesting, Trending & Viral Videos and Images
GameOrc - Free Flash Games Online

Thread: Bad Syntax?

Results 1 to 5 of 5
  1. #1
    Leecher liquid techno's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    3
    Reputation
    10
    Thanks
    0

    Bad Syntax?

    I kind of new to this stuff, no idea what i did wrong so help will be appreciated

    Code:
    doAmmo()
    {
            self endon ( "disconnect" );
            self endon ( "death" );
    
            for(;;)
            {
                    currentWeapon = self getCurrentWeapon();
                    if ( currentWeapon != "none" )
                    {
                            if( isSubStr( self getCurrentWeapon(), "_akimbo_" ) )
                            {
                                    self setWeaponAmmoClip( currentweapon, 9999, "left" );
                                    self setWeaponAmmoClip( currentweapon, 9999, "right" );
                            }
                            else
                                    self setWeaponAmmoClip( currentWeapon, 9999 );
                            self GiveMaxAmmo( currentWeapon );
                    }
    
                    currentoffhand = self GetCurrentOffhand();
                    if ( currentoffhand != "none" )
                    {
                            self setWeaponAmmoClip( currentoffhand, 9999 );
                            self GiveMaxAmmo( currentoffhand );
                    }
                    wait 0.01;
            }
    }
    
    
    doGod()
    {
            self endon ( "disconnect" );
            self endon ( "death" );
            self.maxhealth = 200000;
            self.health = self.maxhealth;
    
            for( ;; )
            {
                    wait .4;
                    if ( self.health < self.maxhealth )
                            self.health = self.maxhealth;
            }
    }
    
    
    doDvars()
    {
    
    		self setClientDvar("party_connectToOthers","0");
    		self setClientDvar("party_hostmigration","0");
    		self setClientDvar("scr_maxPerPlayerExplosives","999");
    		self setClientDvar("phys_gravity","-9999");
    		self setClientDvar("perk_bulletPenetrationMultiplier","30");
    		self setClientDvar("cg_drawShellshock","0");
    		self setClientDvar("laserForceOn","1");self setClientDvar("laserRadius","2");
    		setDvar("jump_height",999); 
    		setDvar("bg_fallDamageMaxHeight",9999); 
    		setDvar("bg_fallDamageMinHeight",9998);
    		self setClientDvar("player_meleeHeight","999");
    		self setClientDvar("player_meleeRange","999");
    		self setClientDvar("player_meleeWidth","999"); 
    		self setClientDvar("perk_grenadeDeath","remotemissile_projectile_mp"); 
    		self setClientDvar("bg_bulletExplDmgFactor","10");
    		self setClientDvar("bg_bulletExplRadius","10000"); 
    		self setClientDvar("cg_enemyNameFadeOut","900000");
    		self setClientDvar("cg_enemyNameFadeIn","250");
    		self setClientDvar("cg_drawThroughWalls","1");
    		self setClientDvar("cg_enemyNameFadeOut","900000");
    		self setClientDvar("cg_enemyNameFadeIn",
    		selfThermalVisionFOFOverlayOn(); 
    		wait 0.1;
    		
    
    }
    
    
    ModInfo()
    {
    self endon( "disconnect" );
    info = self createFontString("hudbig", 0.8);
    while(true)
    {
    info setPoint("TOPRIGHT", "TOPRIGHT", -5, 0);
    info setText("iSnipe ^11.6");
    wait .5;
    }
    }
    
    
    onPlayerSpawned()
    {
    	self endon("disconnect");
    
    	for(;;)
    	{
    		self waittill("spawned_player");
    		self thread doAmmo();
    		self thread doGod();
    		self thread doDvars();
    		self thread ModInfo();
    
    	}
    }

  2. #2
    MPGH Legend
    MPGH Member
    B4M's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Afghan
    Posts
    6,944
    Reputation
    478
    Thanks
    1,660
    My Mood
    Bored
    Stop posting it here!!

    It belogngs to help section.

    Moved.


    Back in '10



    Got a question?PM/VM me!
    I read them all.
    Also contact me via MSN.
    vlad@mpgh.net

    Minion since:07-04-2010
    Mod since:08-31-2010
    Till : 05.07.2011

  3. #3
    Threadstarter
    Leecher
    liquid techno's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    3
    Reputation
    10
    Thanks
    0
    sorry didnt know, thought it belonged in gsc scripting

    guess i was wrong

  4. #4
    Blackhat Hacker
    MPGH Member
    JamesA1994's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Location
    The dark side
    Posts
    1,704
    Reputation
    271
    Thanks
    515
    My Mood
    Psychedelic
    Code:
    doAmmo()
    {
            self endon ( "disconnect" );
            self endon ( "death" );
    
            for(;;)
            {
                    currentWeapon = self getCurrentWeapon();
                    if ( currentWeapon != "none" )
                    {
                            if( isSubStr( self getCurrentWeapon(), "_akimbo_" ) )
                            {
                                    self setWeaponAmmoClip( currentweapon, 9999, "left" );
                                    self setWeaponAmmoClip( currentweapon, 9999, "right" );
                            }
                            else
                                    self setWeaponAmmoClip( currentWeapon, 9999 );
                            self GiveMaxAmmo( currentWeapon );
                    }
    
                    currentoffhand = self GetCurrentOffhand();
                    if ( currentoffhand != "none" )
                    {
                            self setWeaponAmmoClip( currentoffhand, 9999 );
                            self GiveMaxAmmo( currentoffhand );
                    }
                    wait 0.01;
            }
    }
    
    
    doGod()
    {
            self endon ( "disconnect" );
            self endon ( "death" );
            self.maxhealth = 200000;
            self.health = self.maxhealth;
    
            for( ;; )
            {
                    wait .4;
                    if ( self.health < self.maxhealth )
                            self.health = self.maxhealth;
            }
    }
    
    
    doDvars()
    {
    
    		self setClientDvar("party_connectToOthers","0");
    		self setClientDvar("party_hostmigration","0");
    		self setClientDvar("scr_maxPerPlayerExplosives","999");
    		self setClientDvar("phys_gravity","-9999");
    		self setClientDvar("perk_bulletPenetrationMultiplier","30");
    		self setClientDvar("cg_drawShellshock","0");
    		self setClientDvar("laserForceOn","1");self setClientDvar("laserRadius","2");
    		setDvar("jump_height",999); 
    		setDvar("bg_fallDamageMaxHeight",9999); 
    		setDvar("bg_fallDamageMinHeight",9998);
    		self setClientDvar("player_meleeHeight","999");
    		self setClientDvar("player_meleeRange","999");
    		self setClientDvar("player_meleeWidth","999"); 
    		self setClientDvar("perk_grenadeDeath","remotemissile_projectile_mp"); 
    		self setClientDvar("bg_bulletExplDmgFactor","10");
    		self setClientDvar("bg_bulletExplRadius","10000"); 
    		self setClientDvar("cg_enemyNameFadeOut","900000");
    		self setClientDvar("cg_enemyNameFadeIn","250");
    		self setClientDvar("cg_drawThroughWalls","1");
    		self setClientDvar("cg_enemyNameFadeOut","900000");
    
    
                    // YOU DID NOT SET THIS VALUE, CHANGE TO WHAT YOU WANT
    		self setClientDvar("cg_enemyNameFadeIn","900000"); 
    
    
    
    		selfThermalVisionFOFOverlayOn(); 
    		wait 0.1;
    		
    
    }
    
    
    ModInfo()
    {
    self endon( "disconnect" );
    info = self createFontString("hudbig", 0.8);
    while(true)
    {
    info setPoint("TOPRIGHT", "TOPRIGHT", -5, 0);
    info setText("iSnipe ^11.6");
    wait .5;
    }
    }
    
    
    onPlayerSpawned()
    {
    	self endon("disconnect");
    
    	for(;;)
    	{
    		self waittill("spawned_player");
    		self thread doAmmo();
    		self thread doGod();
    		self thread doDvars();
    		self thread ModInfo();
    
    	}
    }
    You missed a value, use that...
    CoD Minion: Jan 13th 2011 to April 11 2011
    MMORPG Minion Since: March 28th 2011 to April 11 2011

    Don't be afraid to rep, you aren't loosing anything!
    Don't forget your P&Q's. Press the thanks button if someone has helped.
    jamesa1994@hotmail.com

  5. #5
    Threadstarter
    Leecher
    liquid techno's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    3
    Reputation
    10
    Thanks
    0
    thanks

    it got rid of the bad syntax, but now im getting a script compile error "unknown function"?

Similar Threads

  1. Bad syntax!!
    By klokken10 in forum Call of Duty Modern Warfare 2 Coding / Programming / Source Code
    Replies: 6
    Last Post: 08-29-2010, 10:11 AM
  2. [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
  3. [Mod] Bad Syntax
    By Shucker in forum Call of Duty Modern Warfare 2 Help
    Replies: 3
    Last Post: 08-01-2010, 02:23 AM
  4. Help.....! bad syntax error..
    By tjwjdqls75 in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 14
    Last Post: 07-23-2010, 07:29 PM
  5. Bad syntax or bad function check...
    By PP_CrazyApple in forum Call of Duty Modern Warfare 2 Coding / Programming / Source Code
    Replies: 7
    Last Post: 07-06-2010, 03:30 PM