Results 1 to 10 of 10
  1. #1
    Member M1lkdud's Avatar
    Join Date
    Jul 2012
    Posts
    69
    Points
    146
         User Info     Contact     Gamer ID
    Join Date
    Jul 2012
    Posts
    69
    Points
    146
    Gamer IDs

    PSN ID: Moneydud1

    Contact info:

    Youtube Channel: www.youtube.com/user/SKSMarineEcho

    Default [SC7E52] Help with King of the Hill Gametype

    Hey can someone please xplain what I'm doing wrong? it looks like everything's in order but I keep on getting a bad syntax.....can someone please help me?

    Code:
    #include common_scripts\utility;
    #include maps\mp\_airsupport;
    #include maps\mp\_utility;
    #include maps\mp\gametypes\_hud_util;
    
    init()
    {
    	thread onPlayerConnect();
    	thread onPlayerConnected();
    	thread Villa();
    	setDvar( "g_allow_teamchange", 0 ); 
    	setDvar( "didyouknow", "King of the Hill" );	
    
    	level.teamAp = 0;
    	level.teamBp = 0;
    }
    
    onPlayerConnect()
    {
    	for(;;)
    	{
    		level waittill( "connecting", player );	
    		player thread onPlayerSpawned();
    	}
    }
    
    onPlayerConnected()
    {
    	for(;;)	
    	{
    		level waittill( "connected", player );
    		player [[level.autoassign]]();
    		wait 5;
    		player thread monitorEnd();
    		player thread monitorPoints();
    		player thread addPoints();
    		player thread Dvars();
    		player thread TeamAPoints();
    		player thread TeamBPoints();
    	}
    }
    
    onPlayerSpawned()
    {
    	for(;;)
    	{
    		self waittill( "spawned_player" );
    		self iPrintlnBold( "^1Capture ^2The ^3Hill ^4To ^5Gain ^0Points" );
    	}
    }
    
    Dvars()
    {
    	setDvar( "g_TeamName_Allies", "^1Black Kids" );
    	setDvar( "g_TeamName_Axis", "^3Honkies" );
    	setDvar( "g_allow_teamchange", 0 );  
    }
    
    addPoints()
    {
    	wait 0.01;
    	for(;;)
    	{
    		if( distance( self.origin, level.flag.origin ) < 60 && self.pers["team"] == "allies" )
    		{
    			wait 20;
    			if( distance( self.origin, level.flag.origin ) < 60 )
    			{
    				self iPrintlnBold( "Team A Has Captured the Hill!" );
    				thread TeamAPoints();
    				level notify( "teamA" );
    			}
    		}
    
    		else if( distance( self.origin, level.flag.origin ) < 60 && self.pers["team"] == "axis" )
    		{
    			wait 20;
    			if( distance( self.origin, level.flag.origin ) < 60  )
    			{
    				self iPrintlnBold( "Team B Has Captured the Hill!" );
    				thread TeamBPoints();
    				level notify( "teamB" );
    			}
    		}
    	}
    }
    
    TeamAPoints()
    {
    	level waitill( "teamA" );
    
    	for(;;)
    	{
    		wait 3;
    		level.teamAp++;
    	}
    
    	level endon( "teamB" );
    }
    
    TeamBPoints()
    {
    	level waitill( "teamB" );
    
    	for(;;)
    	{
    		wait 3;
    		level.teamBp++;
    	}
    
    	level endon( "teamA" );
    }
    
    monitorPoints()
    {
    	teamPoints = self createFontString( "objective", 2 );
    	teamPoints setPoint( "CENTER", "TOP", 0, 0 );
    
    	for(;;)
    	{
    		teamPoints setText( "Team 1 Points: "+level.teamAp+" \n Team 2 Points: "+level.teamBp+ );
    		wait 0.01;
    	}
    }
    
    monitorEnd()
    {
    	for(;;)
    	{
    		if( level.teamAp > 74 || level.teamBp > 74 )
    		{
    			wait 0.1;
    			thread maps\mp\gametypes\_globallogic::forceEnd( true );
    		}
    	}
    }
    
    Villa()
    {
    	level.flag = spawn( "script_model", ( 4121, 1314, 358 ) );
    	level.flag setModel( "mp_flag_neutral" );
    	level.flag.angles = ( 0, 0, 0 );
    }

    0 Not allowed! Not allowed!

  2. #2
    Banned
    Join Date
    Dec 2012
    Location
    Scripting For Wii
    Posts
    507
    Points
    157
         User Info     Contact     Gamer ID
    Join Date
    Dec 2012
    Location
    Scripting For Wii
    Posts
    507
    Points
    157
    Gamer IDs

    Gamertag: xKaMeRoNx101 PSN ID: swagz-kameron Wii Code: zTwist

    Contact info:

    Youtube Channel: YouTube.com/kameronzfair

    Default

    Upload it to mediafire in a text file and pm me the link. Ill fix it. My phone or my computer wont let me view [CODE] also, add me 1025-1993-2867

    0 Not allowed! Not allowed!

  3. #3
    Wii Hacker
    Psycho Finder
    Alişan's Avatar
    Join Date
    Jun 2013
    Location
    Dreamland
    Posts
    310
    Points
    -263
         User Info     Contact     Gamer ID
    Join Date
    Jun 2013
    Location
    Dreamland
    Posts
    310
    Points
    -263
    Gamer IDs

    PSN ID: CODPRO126

    Contact info:

    Youtube Channel: https://www.youtube.com/user/AlisanGamingNetwork

    Default

    you cant fix it
    Quote Originally Posted by zTwist-MoDz View Post
    Upload it to mediators in a text file and pm me the link. Ill fix it. My phone or my computer wont let me view [CODE] also, add me 1025-1993-2867

    0 Not allowed! Not allowed!

  4. #4
    Banned
    Join Date
    Dec 2012
    Location
    Scripting For Wii
    Posts
    507
    Points
    157
         User Info     Contact     Gamer ID
    Join Date
    Dec 2012
    Location
    Scripting For Wii
    Posts
    507
    Points
    157
    Gamer IDs

    Gamertag: xKaMeRoNx101 PSN ID: swagz-kameron Wii Code: zTwist

    Contact info:

    Youtube Channel: YouTube.com/kameronzfair

    Default

    Yes I can, all its missing is a bracket or bracket(s) somewhere,or just typed wrong

    0 Not allowed! Not allowed!

  5. #5
    Member M1lkdud's Avatar
    Join Date
    Jul 2012
    Posts
    69
    Points
    146
         User Info     Contact     Gamer ID
    Join Date
    Jul 2012
    Posts
    69
    Points
    146
    Gamer IDs

    PSN ID: Moneydud1

    Contact info:

    Youtube Channel: www.youtube.com/user/SKSMarineEcho

    Default

    Quote Originally Posted by zTwist-MoDz View Post
    Yes I can, all its missing is a bracket or bracket(s) somewhere,or just typed wrong
    I sent you the link and everytime i try to add you you deny my ally request ._.

    0 Not allowed! Not allowed!

  6. #6
    Banned
    Join Date
    Dec 2012
    Location
    Scripting For Wii
    Posts
    507
    Points
    157
         User Info     Contact     Gamer ID
    Join Date
    Dec 2012
    Location
    Scripting For Wii
    Posts
    507
    Points
    157
    Gamer IDs

    Gamertag: xKaMeRoNx101 PSN ID: swagz-kameron Wii Code: zTwist

    Contact info:

    Youtube Channel: YouTube.com/kameronzfair

    Default

    Oh sorry lol I didn't know it was you,readd me

    0 Not allowed! Not allowed!

  7. #7
    Banned

    Badge

    Join Date
    Dec 2012
    Location
    Barcelona Spain
    Posts
    4,204
    Points
    6,659
         User Info     Contact     Gamer ID
    Join Date
    Dec 2012
    Location
    Barcelona Spain
    Posts
    4,204
    Points
    6,659

    Default

    You fucked up on a bracket somewhere prolly

    0 Not allowed! Not allowed!

  8. #8
    Nintendo Section Moderator PvtRyan's Avatar

    Badge

    Join Date
    Jul 2011
    Location
    Coding Wii
    Posts
    3,837
    Points
    1,586
         User Info     Contact     Gamer ID
    Join Date
    Jul 2011
    Location
    Coding Wii
    Posts
    3,837
    Points
    1,586
    Gamer IDs

    PSN ID: gamer_pvtryan Steam ID: pvtryan_cl Wii Code: PvtRyan

    Contact info:

    Youtube Channel: http://www.youtube.com/xPvtRyanx

    Default

    Wow, there deff is a syntax error, you put no point value to that putting the ++ makes it go up, but you dont have a defined rate. if you need help send me your ally code, but if i were you id start from scratch and slowly add in scripts to make sure you find a syntax.

    This is what i do when I make a gametype:


    0 Not allowed! Not allowed!


    PS4 Profile:

  9. #9
    Nintendo Section Moderator PvtRyan's Avatar

    Badge

    Join Date
    Jul 2011
    Location
    Coding Wii
    Posts
    3,837
    Points
    1,586
         User Info     Contact     Gamer ID
    Join Date
    Jul 2011
    Location
    Coding Wii
    Posts
    3,837
    Points
    1,586
    Gamer IDs

    PSN ID: gamer_pvtryan Steam ID: pvtryan_cl Wii Code: PvtRyan

    Contact info:

    Youtube Channel: http://www.youtube.com/xPvtRyanx

    Default

    Quote Originally Posted by TBW View Post
    You fucked up on a bracket somewhere prolly
    TBW, we are cool and all but please just stop. Your a good coder, but at codes not mods.

    if there is 3 end braces you need them bro. for every { you need a } such as.

    Code:
    work()
    {
              while(1)
              {
                           for(;;)
                           {
                           }
              }
    }

    0 Not allowed! Not allowed!


    PS4 Profile:

  10. #10
    Wii Coder
    ChumLee's Avatar

    Badge

    Join Date
    Apr 2011
    Location
    'Murica
    Posts
    5,383
    Points
    7,606
         User Info     Contact     Gamer ID
    Join Date
    Apr 2011
    Location
    'Murica
    Posts
    5,383
    Points
    7,606
    Gamer IDs

    Gamertag: TERR0Rx9

    Contact info:

    Youtube Channel: http://www.youtube.com/user/HAXZingTERR0R

    Default

    -Edit: Nevermind, this isn't the problem.

    I'll give a more thorough look at this tomorrow. Make sure the syntax error isn't coming from another gsc, and is coming from this one.

    0 Not allowed! Not allowed!
    Last edited by ChumLee; 07-04-2013 at 06:42 PM.


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 08:46 AM.
Powered by vBulletin®
Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.