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.

Solved Issues with adding to a var

Discussion in 'Skript' started by Natalciuu, Oct 5, 2021.

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

    Natalciuu Member

    Joined:
    Nov 12, 2020
    Messages:
    20
    Likes Received:
    0
    Im trying to make a rankup system for my server, I cant get it to add 1 to the var {playerrank.%player%}

    Code:
    Code (Text):
    1. command /rankup:
    2.     trigger:
    3.         if {playerrank.%player%} is greater than or equal to "1":
    4.             if balance of player is greater than or equal to {cost.%player%}:
    5.                 set {cost.%player%} to {cost.%player%} / .25
    6.                 set {playerrank.%player%} to {playerrank.%player%} + 1
    7.                 make console execute command "/eco take %player% %{cost.%player%}%"
    8.                 send "&3[&bPrison&3] &7Ranked up to Mine %{playerrank.%player%}%"
    9.             else:
    10.                 send "&3[&bPrison&3] &7Unable to rankup due to insufficient balance"
     
  2. oToghty

    VIP Supporter +

    Joined:
    Sep 1, 2020
    Messages:
    142
    Likes Received:
    5
    Well you don't even use it, just do `add 1 to {}`
     
Thread Status:
Not open for further replies.

Share This Page

Loading...