#Leaderboard Help :(

1 messages · Page 1 of 1 (latest)

green imp
#

putting the number before the name would sort by lowest # to highest

#

then just reverse that

wheat briar
#

Are you talking about line 7?

#

If so, %loop-index% is already the number

green imp
#

{minedLeaderboardCheck could also be local if youre clearing it

wheat briar
#

I'm not, I'm only clearing those for online players, not offline players

green imp
#

ah

wheat briar
#

Since it gets set at the start of the event for online players, but not offline ones

green imp
green imp
wheat briar
#

Sending the first 10 elements of the list is fine. What doesn't work is the fact that they are in alphabetical order (1 comes before 2 so 25 is considered smaller than 10) because I'm using a string.

raw lake
#

So for players, you're storing the blocks they mine in {mined::%player uuid%}
And then for minedLeaderboardCheck you're storing how many blocks they've mined as the index and their name as value
Then you're looping that, placing them inside a string, and store in _leaderboard

wheat briar
#

Yeah

#

Or else the name doesn't have capital letters

raw lake
#

Try reading this and see if it could make things easier by chance, look at the example
https://skripthub.net/docs/?id=3736