13.09.2011, 18:55
Код:
new rank[MAX_PLAYERS]; for(new i = 0; i < MAX_PLAYERS; i++) { for(new h = 0; h < 1000; h++) // 1000 = Max Score someone could get to be the #1 on the list. { if(GetPlayerScore(i) >= 100) rank[i] = 10; if(GetPlayerScore(i) >= 200) rank[i] = 9; if(GetPlayerScore(i) >= 300) rank[i] = 8; if(GetPlayerScore(i) >= 400) rank[i] = 7; if(GetPlayerScore(i) >= 500) rank[i] = 6; } }