Getting the IDs of the player with highest score
#1

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
Reply


Messages In This Thread
Getting the IDs of the player with highest score - by Skiaffo - 27.03.2011, 09:57
Re: Getting the IDs of the player with highest score - by Markx - 27.03.2011, 09:58
Re: Getting the IDs of the player with highest score - by Skiaffo - 27.03.2011, 09:59

Forum Jump:


Users browsing this thread: 3 Guest(s)