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 our 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.

Trying to add a baltop

Discussion in 'Skript' started by Fiopon, Jan 31, 2019.

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

    Fiopon Member

    Joined:
    Dec 26, 2018
    Messages:
    6
    Likes Received:
    0
    How can I create a baltop command? I save my balances like this:
    Code (Text):
    1. on quit:
    2.     set {{@databasePrefix}playerinfo.%player's uuid%.lastbal} to "%player's balance%"
    I've tried several methods and they've all failed so far.
     
  2. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,010
    Likes Received:
    139
    You wont be able to do it with regular variables, you will need to use list variables if you want to be able to loop them.
     
  3. F

    Fiopon Member

    Joined:
    Dec 26, 2018
    Messages:
    6
    Likes Received:
    0
    Any way you would recommend? I tried making a list for balances but I did it wrong.
     
  4. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,010
    Likes Received:
    139
    It's not easy.
    I would suggest looking at my resource named "SkEco"
    it has a bal top command, you can see at the bottom of the script, it'll give you insight into how it works.
     
Thread Status:
Not open for further replies.
Loading...