The code keeps giving me indentation errors.

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

Poinapples

Member
Feb 4, 2024
21
0
1
13
It keeps telling me that I need 5 tabs not 20 spaces and I don't know what it means because they are they same thing.

code_language.skript:
command /revive [<offline player>]:
    trigger:
        if player has permission "lives.revive":
            if arg-1 is set:
                if {banned::*} contains uuid of arg-1:
                    remove uuid of arg-1 from {banned::*}
                    unban arg-1
                    send "&aRevived %arg-1%&a!" to player
                    broadcast "&6&l%arg-1% has regained their speed!"
                    set {speed.%arg-1%} to 0
                else:
                    send "&cThis player is not banned!" to player
            else:
                send "&cSpecify a player!" to player
        else:
            send "&cYou cannot do this!" to player
            stop
 
Hmm you sure you don't need 20Spaces XD
Okay fr tho I think it's a syntax error not idention. Can you verify your syntax?
 
pretty sure it doesn't show correctly on forums but you can throw the skript into skeditor go to tools > refactor > convert spaces to tabs. repaste it and it should be good to go. or just find the indentation error