Order numbers in chat

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

djmanbr

Member
Feb 18, 2017
31
2
0
28
Hello,

I'm doing a minigame with a friend, I'm doing a TopWins, but I don't know how to order the 3 biggest numbers with their name. Anyone have any idea?

Thanks for attention.
 
I don't think so you searched in the docs.
But here, im taking the work: http://skunity.com/search?search=Number+Sorting

Okay, I test it, but look this: https://gyazo.com/945ddf014abde1c396f907251b319c58

code_language.skript:
command /stats [<text>] [<text>] [<text>]:
    trigger:
        if arg-1 is not set:
            set {_list::*} to {wins.count::*} sorted from highest to lowest with output "@index has won a total of @value games"
            message "&9TOP WINS"
            loop {list::*}:
                message "%loop-index%: %loop-value%"

I used this code, and it says that. Why?
 
Status
Not open for further replies.