05.12.2018, 19:19
Hello, I am developing a ranking system, with the 10 best players on the server (with more score), I would like to know how to create an order, from highest to lowest, considering that rank includes players offline, and yes, I know I need to save their score on some database, and I did this with DOF2.
Suppose I have 10 players, each with a different score, how do I put them in order from highest to lowest?
saving the id of each in an Array, for example:
so forth...
Suppose I have 10 players, each with a different score, how do I put them in order from highest to lowest?
saving the id of each in an Array, for example:
PHP код:
new topserver[11]
//Code here
topserver[1] = // such a player id
//Code here
topserver[2] = //another player id