Basically I am trying to make a points system, everything is done except from distributing points.
For example, I have an array that stores the points (Key is the players ID):
array[0] = 0
array[1] = 0
array[2] = 3
array[3] = 3
array[4] = 5
So from this I have to go to the following points system: 5 for 1st 4 for 2nd 3 for 3rd 2 for 4th 1 for 5th
Now if your tied second, like in the example, both players get 4 points and the last 2 players get 2 points because they are tied 4th, but I need the possibility of the following example working as well:
array[0] = 1
array[1] = 2
array[2] = 3
array[3] = 4
array[4] = 5
Evenly distributed points, which can also convert to the other points system, now this is dynamic, there could be 10 players, in which case the points system goes like the following:
10 for 1st 9 for 2nd 8 for 3rd 7 for 4th 6 for 5th
and so forth.
Any help would be much appreciated.