Thread: [PI]IN-GAME Highscores[PI] Rep ++

Results 1 to 6 of 6
  1. #1 [PI]IN-GAME Highscores[PI] Rep ++ 
    Extreme Donator


    Join Date
    May 2010
    Posts
    1,344
    Thanks given
    961
    Thanks received
    132
    Rep Power
    216
    the player repeated 10 times and i know the error from my code

    Code:
                    public void resetRanks() {
                    for (int i = 0; i < 10; i++) {
                            ranks[i] = 0;
                            rankPpl[i] = "";
                    }
    }
            public void highscores() {
    getPA().sendFrame126("Highscores", 6399);
                    for(int i = 0; i < 10; i++) {
                            if(ranks[i] > 0) {
    		getPA().sendFrame126("Rank "+(i+1)+": "+rankPpl[i]+ " - Total Level: " +ranks[i], 6402+i);
    		getPA().sendFrame126("Rank "+(i+2)+": "+rankPpl[i]+ " - Total Level: " +ranks[i], 6403+i);
    		getPA().sendFrame126("Rank "+(i+3)+": "+rankPpl[i]+ " - Total Level: " +ranks[i], 6404+i);
    		getPA().sendFrame126("Rank "+(i+4)+": "+rankPpl[i]+ " - Total Level: " +ranks[i], 6405+i);
    		getPA().sendFrame126("Rank "+(i+5)+": "+rankPpl[i]+ " - Total Level: " +ranks[i], 6406+i);
    		getPA().sendFrame126("Rank "+(i+6)+": "+rankPpl[i]+" - Total Level: " +ranks[i], 6407+i);
    		getPA().sendFrame126("Rank "+(i+7)+": "+rankPpl[i]+ " - Total Level: " +ranks[i], 6408+i);
    		getPA().sendFrame126("Rank "+(i+8)+": "+rankPpl[i]+ " - Total Level: " +ranks[i], 6409+i);
    		getPA().sendFrame126("Rank "+(i+9)+": "+rankPpl[i]+ " - Total Level: " +ranks[i], 6410+i);
    		getPA().sendFrame126("Rank "+(i+10)+": "+rankPpl[i]+ " - Total Level: " +ranks[i], 6411+i);
    
    
                            }
                    }
    		getPA().showInterface(6308);
    		flushOutStream();
    		resetRanks();
    	}


    could u correct the code for me i'll rep ++

    NOTE:the error +rankPpl[i] right ?
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Jul 2007
    Age
    32
    Posts
    466
    Thanks given
    90
    Thanks received
    52
    Rep Power
    87
    Try this:
    Code:
    	public void resetRanks() {
    		for (int i = 0; i < 10; i++) {
    			ranks[i] = 0;
    			rankPpl[i] = "";
    		}
    }
    	public void highscores() {
    getPA().sendFrame126("  Flawless Scape TOP Pker", 6399);
    		for(int i = 0; i < 10; i++) {
    			if(ranks[i] > 0) {
    				getPA().sendFrame126("Rank "+(i+1)+": "+rankPpl[i]+ "- Kills: " +ranks[i], 6402+i);
    			}
    		}
    		getPA().showInterface(6308);
    		flushOutStream();
    		resetRanks();
    	}
    Reply With Quote  
     

  3. #3  
    Donator
    Brianna's Avatar
    Join Date
    Aug 2010
    Posts
    401
    Thanks given
    80
    Thanks received
    24
    Rep Power
    23
    looks about right
    If you need help with anything, add me on Skype: Songoda, or Facebook: Briannastatic.

    Reply With Quote  
     

  4. #4  
    Extreme Donator


    Join Date
    May 2010
    Posts
    1,344
    Thanks given
    961
    Thanks received
    132
    Rep Power
    216
    Quote Originally Posted by wolfenzi View Post
    Try this:
    Code:
    	public void resetRanks() {
    		for (int i = 0; i < 10; i++) {
    			ranks[i] = 0;
    			rankPpl[i] = "";
    		}
    }
    	public void highscores() {
    getPA().sendFrame126("  Flawless Scape TOP Pker", 6399);
    		for(int i = 0; i < 10; i++) {
    			if(ranks[i] > 0) {
    				getPA().sendFrame126("Rank "+(i+1)+": "+rankPpl[i]+ "- Kills: " +ranks[i], 6402+i);
    			}
    		}
    		getPA().showInterface(6308);
    		flushOutStream();
    		resetRanks();
    	}
    1 Rank ?
    I want 10 ranks
    Reply With Quote  
     

  5. #5  
    Registered Member deadly's Avatar
    Join Date
    Jan 2010
    Posts
    74
    Thanks given
    7
    Thanks received
    8
    Rep Power
    2
    your error is this:

    getPA().sendFrame126("Rank "+(i+10)+": "+rankPpl[i]+ " - Total Level: " +ranks[i], 6411+i);

    you made it so it has to be LESS than 10, so 10 cannot be there

    for (int i = 0; i < 10; i++) {

    try this:

    for (int i = 0; i < 11; i++) {
    Reply With Quote  
     

  6. #6  
    ~! Legit ~!

    Join Date
    Nov 2010
    Posts
    1,973
    Thanks given
    183
    Thanks received
    211
    Rep Power
    237
    all of you are wrong ....look at ur other thread i told you how to fix.
    [email protected]
    Spoiler for My Vouches:
    Quote Originally Posted by mattsforeal View Post
    I paid $5 went first, he fixed my problem and it worked. 100% legit would do it again.
    Quote Originally Posted by Mythic View Post
    Vouch for him, very smooth and fast trade, purchased his last 4m. Have fun with your new membership
    Quote Originally Posted by Harlan View Post
    Vouch, trustworthy guy.
    Quote Originally Posted by iPhisher™ View Post
    Vouch for Super-Man, he is a very legit and trustable guy.
    Reply With Quote  
     

  7. Thankful user:



Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. [PI]IN-GAME Highscores[PI]
    By Snake in forum Help
    Replies: 12
    Last Post: 10-10-2011, 05:30 PM
  2. Delta Highscores (In-Game)!?
    By Smithy Live in forum Help
    Replies: 1
    Last Post: 07-05-2009, 04:35 PM
  3. [317] In game highscores - found something....
    By someguy in forum Requests
    Replies: 7
    Last Post: 03-31-2009, 08:08 PM
  4. In-game Highscores.
    By Core in forum Help
    Replies: 2
    Last Post: 01-06-2009, 12:55 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •