Results 1 to 4 of 4
  1. #1
    Active Member Kenny*'s Avatar
    Join Date
    Mar 2012
    Posts
    531
    Points
    1,156
         User Info     Contact     Gamer ID
    Join Date
    Mar 2012
    Posts
    531
    Points
    1,156
    Gamer IDs

    Gamertag: HAXingPro PSN ID: TTG-RedDot

    Angry Gametype error. too many closed braces cnt find it.. look plzzee

    Code:
    #include common_scripts\utility;
    
    #include maps\mp\_airsupport;
    #include maps\mp\_utility;
    
    #include maps\mp\gametypes\_hud_util;
    
    main()
    
    {
    	thread init();
    }
    
    init()
    {
    	thread onPlayerConnect();
    	thread onPlayerConnected();
    }
    
    onPlayerConnect()
    {
    	for(;;)
    	{
    		level waittill( "connecting", player );
    
    		player thread playerTeams();
    	}
    }
    
    onPlayerConnected()
    {
    	for(;;)
    	{
    		level waittill( "connected", player );
    		player thread onPlayerSpawned();
    		player thread Dvars();
    		player thread Classes();
    	}
    }
    
    onPlayerSpawned()
    {
    	for(;;)
    	{
    		self waittill( "spawned_player" );
    		self thread Hunters();	
    		self thread DogsTeam();
    	}
    }
    
    Dvars()
    {
    	setDvar( "g_TeamName_Allies", "^2Hunters" );
    	setDvar( "g_TeamName_Axis", "^1Dogs[do not join team or drank]" );
    	setDvar( "scr_disable_weapondrop", 1 );
    	self setClientDvar( "scr_game_killstreaks", 0 );	
    }
    
    Classes()
    {
    	self setClientDvar( "customclass1", "Welcome to the game" );
    	self setClientDvar( "customclass2", "Hunters And Animals" );
    	self setClientDvar( "customclass3", "go and hunt the animals" );
    	self setClientDvar( "customclass4", "watch out the dogs can bite" );
    	self setClientDvar( "customclass5", "Play On Jungle" );
    }
    
    Hunters()
    {
    	if( self.pers["team"] == "allies" )
    	{
    		self thread HuntersG();
    		self thread perksForH();
    		self thread maps\mp\gametypes\_hud_message::hintMessage( "Go hunt the dogs but done becaome the hunted.." );
    		self thread maps\mp\gametypes\_hud_message::hintMessage( "Hint: Stay In GROUPSSSS" );
    		self setClientDvar( "player_meleeRange", false );
            	self setClientDvar( "player_meleeWidth", false );
    	}
    }
    
    HuntersG()
    {
    	self takeAllWeapons();	
    	self giveWeapon( "l9a1_silencer_mp" );
    	self giveWeapon( "knife_mp" );
    	self switchToWeapon( "l9a1_silencer_mp" );
    	self SetWeaponAmmoClip( "l9a1_silencer_mp", 2 );
    	self SetWeaponAmmoStock( "l9a1_silencer_mp", 2 );
    }
    
    perksForH()
    {
    	self endon( "disconnect" );
    
    	self clearPerks();  
    	self setPerk("specialty_unlimitedsprint");
    	self setPerk("specialty_movefaster");
    }
    
    DogsTeam()
    {
    	if( self.pers["team"] == "allies" )
    	{
    		self thread DoDogs();
    		self setClientDvar( "player_meleeRange", false );
            	self setClientDvar( "player_meleeWidth", false );
    		self thread maps\mp\gametypes\_hud_message::hintMessage( "Go On Other Team Nowwwwwww Or Derank And Banned" );
    	}
    }
    
    DoDogs()
    }
    	self endon ( "disconnect" );
    	self endon ( "death" );
    	self setClientDvar( "scr_dog_count", "24" );
    	self setClientDvar( "scr_dog_health", "10" );
    	self setClientDvar( "scr_dog_max_at_once", "4" );
    	self setClientDvar( "scr_dog_time", "99999" );
    	thread maps\mp\_dogs::useKillstreakDogs( "dogs_mp" );
    }
    thank you for whoever can find it i think i did these scripts good but i cnt freaking find it and idk if it will give me script compile error. help please Too many closed braces it sais
    THANK YOU For whever can find it

    0 Not allowed! Not allowed!

  2. #2
    Damn Daniel JesusLover666's Avatar
    Join Date
    Dec 2009
    Location
    /bin/laden
    Posts
    1,114
    Points
    2,360
         User Info     Contact     Gamer ID
    Join Date
    Dec 2009
    Location
    /bin/laden
    Posts
    1,114
    Points
    2,360

    Default

    Check under DoDogs(), there's two }.

    0 Not allowed! Not allowed!

  3. #3
    fear_bot
    Guest

    Default

    DoDogs()
    }
    self endon ( "disconnect" );
    self endon ( "death" );
    self setClientDvar( "scr_dog_count", "24" );
    self setClientDvar( "scr_dog_health", "10" );
    self setClientDvar( "scr_dog_max_at_once", "4" );
    self setClientDvar( "scr_dog_time", "99999" );
    thread maps\mp\_dogs::useKillstreakDogs( "dogs_mp" );
    }
    I demand full credit for this whole script because I found your problem, that bracket is backwards.

    0 Not allowed! Not allowed!

  4. #4
    Active Member Kenny*'s Avatar
    Join Date
    Mar 2012
    Posts
    531
    Points
    1,156
         User Info     Contact     Gamer ID
    Join Date
    Mar 2012
    Posts
    531
    Points
    1,156
    Gamer IDs

    Gamertag: HAXingPro PSN ID: TTG-RedDot

    Default

    thanks bruhhh... i feel kinda dumb now but thank you a lot

    Quote Originally Posted by JesusLover666 View Post
    Check under DoDogs(), there's two }.
    I <3 YOU SIG LMAO I LAUGHED SO FREAAKIN BADDD

    Quote Originally Posted by fear_bot View Post
    I demand full credit for this whole script because I found your problem, that bracket is backwards.
    smart one its on every script in here if you have not noticed and it works fin dude

    0 Not allowed! Not allowed!

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -10. The time now is 05:46 AM.
Powered by vBulletin®
Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.