[Ajuda] Ranking
#9

E em DOF2.

Cheguei a este comando

pawn Code:
command(rank,playerid,params[])
{
    new top, top2[5] = -1, Jogadortop[5][24];
    while(top < 5)
    {
         for(new i; i < MAX_PLAYERS; i++)
         {
               if(IsPlayerConnected(i))
               {
                    if(PlayerInfo[i][pScore] > top2[top])
                    {
                           top2[top] = PlayerInfo[i][pScore];
                    }
               }
          }
     }
     //for(new i; i < 5;i++)
     for(new i=0; i< 5; i++)
     {
          if(Jogadortop[i][0] == EOS)
          {
               format(arquivo,sizeof arquivo,"[%d] %s | Score: %d",i+1,Nome(top),top2[i]);
               SendClientMessage(playerid,0xC9170EFF,arquivo);
          }
     }
     return true;
}

Meio sem sentido mas tmb nao pega
Reply


Messages In This Thread
Ranking - by Don_Speed - 21.04.2013, 17:46
Re: Ranking - by Kmatsu - 21.04.2013, 18:00
Re: Ranking - by Sky™ - 21.04.2013, 18:03
Re: Ranking - by MatheusAlcapone - 21.04.2013, 18:07
Re: Ranking - by Don_Speed - 21.04.2013, 18:22
Re: Ranking - by Supera - 21.04.2013, 18:36
Re: Ranking - by Skream - 21.04.2013, 19:36
Re: Ranking - by leonardo1434 - 21.04.2013, 20:24
Re: Ranking - by Don_Speed - 21.04.2013, 22:12
Re: Ranking - by Gleisson_. - 21.04.2013, 23:42

Forum Jump:


Users browsing this thread: 1 Guest(s)