1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

top money

Discussion in 'Development' started by dygecogy, Apr 8, 2022.

  1. dygecogy

    dygecogy Spider

    Messages:
    14
    JSON FILE:
    Code:
    {
        "player1": {
            "money": 1000,
            "kills": 6
        },
        "player2": {
            "money": 3000,
            "kills": 12
        },
        "player3": {
            "money": 2000,
            "kills": 2
        }
    }
    How can I sort the money in the json file?
    (TOP MONEY)

    Can you post it as code?
     
  2. Primus

    Primus Zombie Pigman

    Messages:
    749
    minijaham likes this.
  3. dygecogy

    dygecogy Spider

    Messages:
    14
  4. Besher

    Besher Witch

    Messages:
    51
    You need to save the player with thier name not as a player
     
  5. dygecogy

    dygecogy Spider

    Messages:
    14
    player1 in json file is just an example
    player1 is actually a player name
     
  6. Primus

    Primus Zombie Pigman

    Messages:
    749
    Last edited: Apr 12, 2022
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.