Ranking System -DOF2-
#1

You could make a rank system with all players using dof2?

My base display only online players:
PHP код:
    new MaxData[11];
    new 
MaxDataID[11];
    new 
bool:OnTheRank[MAX_PLAYERS];
    new 
DataSource[MAX_PLAYERS];
    new 
Ranking[9000];
    new 
DialogString[9000];
    for(new 
iGetMaxPlayers(); i++)
    {
        if(
IsPlayerConnected(i)) DataSource[i] = GetPlayerScore(i); //FONTE DE DADOS DO RANKING
    
}
    for(new 
i11i++){MaxData[i] = -1;MaxDataID[i] = -1;} //Preparar variбveis
    
for(new iGetMaxPlayers(); i++) // Posiзгo 1є
    
{
        if(
IsPlayerConnected(i))
        {
            if(
DataSource[i] > MaxData[1])
            {
                
MaxData[1] = DataSource[i];
                
MaxDataID[1] = i;
            }
        }
    } 
Reply
#2

What is dof2? And cell sizes of 9000 is way too much.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)