Solved Issues with adding to a var

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

Natalciuu

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

Code:
Code:
command /rankup:
    trigger:
        if {playerrank.%player%} is greater than or equal to "1":
            if balance of player is greater than or equal to {cost.%player%}:
                set {cost.%player%} to {cost.%player%} / .25
                set {playerrank.%player%} to {playerrank.%player%} + 1
                make console execute command "/eco take %player% %{cost.%player%}%"
                send "&3[&bPrison&3] &7Ranked up to Mine %{playerrank.%player%}%"
            else:
                send "&3[&bPrison&3] &7Unable to rankup due to insufficient balance"
 
Im trying to make a rankup system for my server, I cant get it to add 1 to the var {playerrank.%player%}

Code:
Code:
command /rankup:
    trigger:
        if {playerrank.%player%} is greater than or equal to "1":
            if balance of player is greater than or equal to {cost.%player%}:
                set {cost.%player%} to {cost.%player%} / .25
                set {playerrank.%player%} to {playerrank.%player%} + 1
                make console execute command "/eco take %player% %{cost.%player%}%"
                send "&3[&bPrison&3] &7Ranked up to Mine %{playerrank.%player%}%"
            else:
                send "&3[&bPrison&3] &7Unable to rankup due to insufficient balance"
Well you don't even use it, just do `add 1 to {}`
 
Status
Not open for further replies.