07.02.2017, 16:23
Olб galera,bom eu coloquei o sistema de rank(top10) no meu servidor sу que nгo entendo,nгo aparece os nomes..
Nгo aparece o nome do jogador na posiзгo 1.
Код:
for(new i; i < size; i++) // Posiзгo 1є { if(DataSource[i] > MaxData[1]) { MaxData[1] = DataSource[i]; format(NameTop[1], strlen(NamePlayer[i])+1, NamePlayer[i]); } } for(new i; i < size; i++) // Posiзгo 2є { if(DataSource[i] > MaxData[2] && DataSource[i] <= MaxData[1]) { MaxData[2] = DataSource[i]; format(NameTop[2], strlen(NamePlayer[i])+1, NamePlayer[i]); } } for(new i; i < size; i++) // Posiзгo 3є { if(DataSource[i] > MaxData[3] && DataSource[i] <= MaxData[2]) { MaxData[3] = DataSource[i]; format(NameTop[3], strlen(NamePlayer[i])+1, NamePlayer[i]); } } for(new i; i < size; i++) // Posiзгo 4є { if(DataSource[i] > MaxData[4] && DataSource[i] <= MaxData[3]) { MaxData[4] = DataSource[i]; format(NameTop[4], strlen(NamePlayer[i])+1, NamePlayer[i]); } } for(new i; i < size; i++) // Posiзгo 5є { if(DataSource[i] > MaxData[5] && DataSource[i] <= MaxData[4]) { MaxData[5] = DataSource[i]; format(NameTop[5], strlen(NamePlayer[i])+1, NamePlayer[i]); } } for(new i; i < size; i++) // Posiзгo 6є { if(DataSource[i] > MaxData[6] && DataSource[i] <= MaxData[5]) { MaxData[6] = DataSource[i]; format(NameTop[6], strlen(NamePlayer[i])+1, NamePlayer[i]); } } for(new i; i < size; i++) // Posiзгo 7є { if(DataSource[i] > MaxData[7] && DataSource[i] <= MaxData[6]) { MaxData[7] = DataSource[i]; format(NameTop[7], strlen(NamePlayer[i])+1, NamePlayer[i]); } } for(new i; i < size; i++) // Posiзгo 8є { if(DataSource[i] > MaxData[8] && DataSource[i] <= MaxData[7]) { MaxData[8] = DataSource[i]; format(NameTop[8], strlen(NamePlayer[i])+1, NamePlayer[i]); } } for(new i; i < size; i++) // Posiзгo 9є { if(DataSource[i] > MaxData[9] && DataSource[i] <= MaxData[8]) { MaxData[9] = DataSource[i]; format(NameTop[9], strlen(NamePlayer[i])+1, NamePlayer[i]); } } for(new i; i < size; i++) // Posiзгo 10є { if(DataSource[i] > MaxData[10] && DataSource[i] <= MaxData[9]) { MaxData[10] = DataSource[i]; format(NameTop[10], strlen(NamePlayer[i])+1, NamePlayer[i]); } } for(new i; i < 11; i++) { format(Ranking, sizeof(Ranking), "{00FF00}%s %i- {ffffff}%s - {00FF00}Hits: {ffffff}%i\n", Ranking,i,NameTop[i],MaxData[i]); } format(DialogString, sizeof(DialogString), "{ffffff}%s\n",Ranking); ShowPlayerDialog(playerid,9559,DIALOG_STYLE_MSGBOX,"{1D4FC4}» {ffffff}Ranking de Hits",DialogString,"OK","Voltar"); return 1; }