Solved It keeps returning errors when I reload.

  • 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 community!

    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!

Poinapples

Member
Feb 4, 2024
25
0
1
This is the code. If anyone can help me fix this it would mean a lot to me.

code_language.skript:
command /withdraw <integer>:
    trigger:
        if arg-1 is set:
            if arg-1 is 1:
                set {_withdraw} to 0.5
            if arg-1 is 2:
                set {_withdraw} to 1
            if arg-1 is 3:
                set {_withdraw} to 1.5
            if arg-1 is 4:
                set {_withdraw} to 2
            if arg-1 is 5:
                set {_withdraw} to 2.5
            if {_withdraw} is less than or equal to {Stopwatch.%player's uuid%}:
                set {Stopwatch.%player's uuid%} to {Stopwatch.%player's uuid%} - {_withdraw}
                set {_arg1} to arg-1
                set {_s} to paper of unbreaking 1 named "&6&lStopwatch" with custom model data 1 with all flags hidden
                give arg-1 {_s} to player
                if arg-1 is 1:
                    message "&6&lYou just withdrew %arg-1% stopwatch!" to player
                else:
                    message "&6&lYou just withdrew %arg-1% stopwatches!" to player
            else:
                message "&6&lYou dont have that amount of stopwatches!" to player
 
2024-11-10_18.28.52.png
 

Attachments

  • 2024-11-10_18.29.56.png
    2024-11-10_18.29.56.png
    1.1 MB · Views: 123