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?
|
Hey Guys i've just coded new highscore and i need help fixing something, the problem was in ranks...........................
The Code :
Any help ?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); } }
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?
up
upup
upupup
upupupup
upupupupup
upupupupupup
upup
upup
upup
upup
upup
upup
upup
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..
can u correct 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); } }
Anyone figure this out yet??? I have the same problem...
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |