1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

balancetop money formatting

Discussion in 'Skript' started by Zak, May 1, 2020.

Thread Status:
Not open for further replies.
  1. Zak

    Zak Member

    Joined:
    Mar 28, 2020
    Messages:
    2
    Likes Received:
    0
    command /balancetop:
    aliases: /baltop, /moneytop
    trigger:
    loop {baltop::*}:
    set {baltop::%loop-index%} to "%loop-value%" parsed as integer
    set {_baltop::*} to sorted {money::*} from highest to lowest with format "&[email protected] &f- &[email protected]"
    set {_a} to 0
    loop {_baltop::*}:
    {_a} != 10
    add 1 to {_a}
    send "&a%{_a}%&a. &f%loop-value%"

    how would I make the money formatted?

    500000 -> 500,000
     
  2. Abdera7mane

    Abdera7mane Active Member

    Joined:
    Aug 18, 2019
    Messages:
    56
    Likes Received:
    7
    please use code block when insering your code.
    you may find the answer here: https://www.spigotmc.org/threads/how-to-format-currency-in-skript.337064/
     
Thread Status:
Not open for further replies.

Share This Page

Loading...