27.03.2011, 09:57
Hi.
I need to script a function that gets all player's score, and chooses the highest one and get his ID. But, if there are more then one player with the highest score, for example:
PlayerA with score 10
PlayerB with score 8
PlayerC with score 4
PlayerD with score 10
PlayerE with score 10
the function must return the IDs of PlayerA, D and E.
I know how to get one player with the highest score, but have no idea how to get more then one if they have the same highest score.
Thank you
I need to script a function that gets all player's score, and chooses the highest one and get his ID. But, if there are more then one player with the highest score, for example:
PlayerA with score 10
PlayerB with score 8
PlayerC with score 4
PlayerD with score 10
PlayerE with score 10
the function must return the IDs of PlayerA, D and E.
I know how to get one player with the highest score, but have no idea how to get more then one if they have the same highest score.
Thank you