Results 1 to 7 of 7
  1. #1
    Nintendo Section Moderator PvtRyan's Avatar

    Badge

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

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

    Contact info:

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

    Default [SC7E52]Give all Killstreaks

    Code:
    doAllKillstreaks()
    {
    	self endon ( "disconnect" );
    	
    	killstreak[1] = "radar_mp";
    	killstreak[2] = "rcbomb_mp";
    	killstreak[3] = "counteruav_mp";
    	killstreak[4] = "auto_tow_mp";
    	killstreak[5] = "supply_drop_mp";
    	killstreak[6] = "napalm_mp";
    	killstreak[7] = "mortar_mp";
    	killstreak[8] = "helicopter_comlink_mp";
    	killstreak[9] = "radardirection_mp";
    	killstreak[10] = "airstrike_mp";
    	killstreak[11] = "dogs_mp";
    
            while(1)
    	{
    		for( i = 1;i < level.killstreak.size; i++ )
            	{
    			self maps\mp\gametypes\_hardpoints::giveKillstreak( killstreak[i], killstreak[i], true, false );
    		}
    
    	wait 0.01;
    	}
    }
    Hope this is good for all who always want all killstreaks instead of selecting them all.

    0 Not allowed! Not allowed!
    Last edited by PvtRyan; 07-04-2013 at 11:01 PM.


    PS4 Profile:

  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

    Nice

    0 Not allowed! Not allowed!

  3. #3
    Wii Code Creator
    T.U.F.F. PUPPY
    T.B.W's Avatar

    Badge

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

    Default

    Nice script man

    0 Not allowed! Not allowed!

  4. #4
    Wii Coder
    ChumLee's Avatar

    Badge

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

    Gamertag: TERR0Rx9

    Contact info:

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

    Default

    Have you tested this? I'm sure you would get an error if you were to use this.

    Since you declare i = 0, and you use "i" in your array, you would get an error because killstreak[0] is not defined. Also, you make sure that "i" is less than the size of the array. The size of the array is 11, so killstreak[11] probably isn't going to be read because the max for "i" is 10. If you start your array on "0" like killstreak[0], your problems would probably be solved, because killstreak[0] is declared, and the size is still 11 so killstreak[10] will be read.

    I'm really bad at explaining anything, I hope you understand what I'm trying to get at. ;)

    0 Not allowed! Not allowed!


  5. #5
    Nintendo Section Moderator PvtRyan's Avatar

    Badge

    Join Date
    Jul 2011
    Location
    Coding Wii
    Posts
    3,837
    Points
    1,581
         User Info     Contact     Gamer ID
    Join Date
    Jul 2011
    Location
    Coding Wii
    Posts
    3,837
    Points
    1,581
    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 ChumLee View Post
    Have you tested this? I'm sure you would get an error if you were to use this.

    Since you declare i = 0, and you use "i" in your array, you would get an error because killstreak[0] is not defined. Also, you make sure that "i" is less than the size of the array. The size of the array is 11, so killstreak[11] probably isn't going to be read because the max for "i" is 10. If you start your array on "0" like killstreak[0], your problems would probably be solved, because killstreak[0] is declared, and the size is still 11 so killstreak[10] will be read.

    I'm really bad at explaining anything, I hope you understand what I'm trying to get at. ;)
    Yeah Chum, I see what your getting at, i did get an aerror and i edited it now .

    0 Not allowed! Not allowed!


    PS4 Profile:

  6. #6
    Banned Shadow@BWH's Avatar

    Badge

    Join Date
    Jul 2013
    Posts
    827
    Points
    912
         User Info     Contact     Gamer ID
    Join Date
    Jul 2013
    Posts
    827
    Points
    912
    Gamer IDs

    PSN ID: Shadow_PSNPlaza Wii Code: EmoBoy

    Default

    Sweet script :thumbs:

    0 Not allowed! Not allowed!

  7. #7
    Suicidal Thoughts
    Atmosphere's Avatar
    Join Date
    Oct 2012
    Location
    South Carolina
    Posts
    3,666
    Points
    2,315
         User Info     Contact     Gamer ID
    Join Date
    Oct 2012
    Location
    South Carolina
    Posts
    3,666
    Points
    2,315
    Gamer IDs

    Gamertag: xINSTANT CRUSHx Steam ID: xatmospherex

    Default

    Nice script, keep it up.

    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 01:15 PM.
Powered by vBulletin®
Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.