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

Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1 [PI]IN-GAME Highscores[PI] 
    Extreme Donator


    Join Date
    May 2010
    Posts
    1,344
    Thanks given
    961
    Thanks received
    132
    Rep Power
    216
    Hey Guys i've just coded new highscore and i need help fixing something, the problem was in ranks...........................


    The 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);
    
    
                            }
                    }
    Any help ?
    Reply With Quote  
     

  2. #2  
    Registered Member
    Brady's Avatar
    Join Date
    Apr 2009
    Posts
    1,714
    Thanks given
    354
    Thanks received
    368
    Rep Power
    1633
    So you want it so if the player has rights (1) it will show up as Moderator + Player name, rights (2) to show up as Administrator + Player name?

    Correct?







    Reply With Quote  
     

  3. #3  
    Extreme Donator


    Join Date
    May 2010
    Posts
    1,344
    Thanks given
    961
    Thanks received
    132
    Rep Power
    216
    Quote Originally Posted by `Brady View Post
    So you want it so if the player has rights (1) it will show up as Moderator + Player name, rights (2) to show up as Administrator + Player name?

    Correct?
    Noooo
    Why it's repeating the same player 10 times ?
    what i want is :

    Rank 1:Brady - Total level 1000
    Rank 2:conan300 - Total level 700
    Rank 3:noob - Total level 30
    Rank 4 ........ Rank 10
    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 `Brady View Post
    So you want it so if the player has rights (1) it will show up as Moderator + Player name, rights (2) to show up as Administrator + Player name?

    Correct?
    Maybe u should tech me how to do that too lol
    Reply With Quote  
     

  5. #5  
    Extreme Donator


    Join Date
    May 2010
    Posts
    1,344
    Thanks given
    961
    Thanks received
    132
    Rep Power
    216
    up
    upup
    upupup
    upupupup
    upupupupup
    upupupupupup
    upup
    upup
    upup
    upup
    upup
    upup
    upup
    Reply With Quote  
     

  6. #6  
    Registered Member Satan666's Avatar
    Join Date
    May 2010
    Posts
    449
    Thanks given
    65
    Thanks received
    100
    Rep Power
    15
    please just look at your code.. your looping 10 times (for int i = 0; i < 10;i++)
    each loop you post 10 sendframes with the same people duh? rankPpl[i] will always be the same..
    Reply With Quote  
     

  7. #7  
    Extreme Donator


    Join Date
    May 2010
    Posts
    1,344
    Thanks given
    961
    Thanks received
    132
    Rep Power
    216
    can u correct the code ?
    Reply With Quote  
     

  8. #8  
    Extreme Donator


    Join Date
    May 2010
    Posts
    1,344
    Thanks given
    961
    Thanks received
    132
    Rep Power
    216
    ^
    ^^
    ^^^
    ^^^^
    ^^^^^
    ^^^^^^
    ^^^^^^^
    ^^^^^^^^
    ^^^^^^^^^
    ^^^^^^^^^^
    ^^^
    ^^^
    ^^^
    ^^^
    ^^^
    ^^^
    ^^^
    ^^^
    Reply With Quote  
     

  9. #9  
    Extreme Donator


    Join Date
    May 2010
    Posts
    1,344
    Thanks given
    961
    Thanks received
    132
    Rep Power
    216
    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);
    
    
                            }
                    }
    Reply With Quote  
     

  10. #10  
    Registered Member deadly's Avatar
    Join Date
    Jan 2010
    Posts
    74
    Thanks given
    7
    Thanks received
    8
    Rep Power
    2
    Anyone figure this out yet??? I have the same problem...
    Reply With Quote  
     

Page 1 of 2 12 LastLast

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. Mouse Game (With Highscores)
    By Sieg in forum Chat
    Replies: 7
    Last Post: 03-01-2010, 02:55 AM
  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
  •