leaderboard on dialog
#1

hi.i wanna make a leaderboard on dialog,and show for players.
like this:

-----------server top score--------------
alex score:300
michael score:200
james score:100
.....
[yes] [cancel]
------------------------------------------

anyone can tell me how to do?
i think... we should use: strcmp,for,ShowPlayerDialog
Reply
#2

anyhelp?
Reply
#3

You need to sort the players score in descending order which can be obtained using md-sort by slice or the quicksort function.

This is about md-sort: https://sampforum.blast.hk/showthread.php?tid=343172
Study the code, this can be looking way hard than expected for you but this ain't. You sort the players score using SortDeepArray. And then you simply retrieve the scores into a dialog
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)