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 ?