Rank sorting
I've been thinking one this for a long time now, and i am really clueless...
Let's make an example: Code:
Let's say that i want the players whit the highest numbers on the top, so it's like: Code:
How would i do like that? :) |
Re: Rank sorting
|
Re: Rank sorting
Quote:
|
Re: Rank sorting
This is how GunGame does it.
Code:
Assuming that "score" is the variable that you want to sort by. When it's done, sort[0][0] = highest scoring player's id, sort[0][1] = highest scoring player's score; sort[1][0] = second highest scoring player's id, sort[1][1] = second highest scoring player's score; etcetera. |
| All times are GMT -4. The time now is 00:44. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.