Problem With CCM Top Ranks

Read the title bar. I'm not sure if anyone else has had this problem before. the findtopranks() command doesn't work. If any two players have the same XP values, the newest player gets a duplicate entry. This goes for multiple players with the same XP values also.

I'm not sure if this has something to do with some of the modification I have done to the file or not.
function findTopRanks() {
   %noabove = 10000000;   //Highest Rank Level XP
   for(%i = 1; %i <= $Rank::numplayers; %i++){
	for(%j = 0; %j < $Rank::numplayers; %j++){
	   if(($Rank::XP[%j] >= %highest || %highest $= "") && ($Rank::XP[%j] < %noabove){
           %highest = $Rank::XP[%j];
		   %player = %j;
	   }
	}
	$Rank::Top[%i] = $Rank::Name[%player];
    $Rank::TopXP[%i] = $Rank::XP[%player];
    $Rank::TopRank[%i] = $Rank::Rank[%player];
    $Rank::TopPlPosition[%player] = %i;
    echo("Top Rank Position "@%i@": "@$Rank::Name[%player]@", XP: "@$Rank::XP[%player]@", Rank: "@$Rank::Rank[%player]@"");
	%noabove = %highest;
	%highest = "";
   }
    export( "$Rank::*", "prefs/Ranks.cs", false );
}

Also, I am curious. Is there any way to have the numbers not in scientific notation above 1 million? Because I would love to have the EXP values on players over 1 million to be shown in numerical format, and not in scientific notation.
Sign In or Register to comment.