Solved Please help me

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

Status
Not open for further replies.

ReportedPlayer

New Member
Mar 5, 2018
6
0
0
Hello,

i have wrote a script and there ist an error!

The script:

code_language.skript:
every 3 seconds:
    loop all players:
        if loop-player has permission "*":
        stop
        if loop-player is op:
        stop
        if loop-player has permission "Belohnung.Spieler":
            execute console command "/eco give %loop-player% 30"
            send "&7" to loop-player
            send "&7" to loop-player
            send "&7" to loop-player
            send "&7" to loop-player
            send "&7" to loop-player
            wait 5 ticks
            send "&7" to loop-player
            send "&3GamingMine &8● &d+&a30 &6Coins &7für &630 Minuten &7Spielzeit!" to loop-player
            send "&7" to loop-player
            play "CHICKEN_EGG_POP" to loop-player at volume 100
        else:
            stop

The error:

Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (PlaytimeSK.sk, line 216: if loop-player has permission "*":')

Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (PlaytimeSK.sk, line 216: if loop-player is op:')


I hope someone can help me.
 
code_language.skript:
if loop-player has permission "*":
        stop
        if loop-player is op:
        stop
You didn't use tabs.
Replace that with this:
code_language.skript:
if loop-player has permission "*":
            stop
        if loop-player is op:
            stop
 
code_language.skript:
every 3 seconds:
    loop all players:
        if loop-player has permission "*":
                stop
            if loop-player is op:
                stop
        if loop-player has permission "Belohnung.Spieler":
            execute console command "/eco give %loop-player% 30"
            send "&7" to loop-player
            send "&7" to loop-player
            send "&7" to loop-player
            send "&7" to loop-player
            send "&7" to loop-player
            wait 5 ticks
            send "&7" to loop-player
            send "&3GamingMine &8● &d+&a30 &6Coins &7für &630 Minuten &7Spielzeit!" to loop-player
            send "&7" to loop-player
            play "CHICKEN_EGG_POP" to loop-player at volume 100
 
Status
Not open for further replies.