Skript need help with this

Status
This thread has been locked.

potlaggerino

Feedback score
0
Posts
7
Reactions
0
Resources
0
Hey i am trying to make a parkourgames skript but i want the command /pg create make it so it creates an arena, but it gives errors and i dont know how to fix it(the errors are in the attached files this is my code now:


 

Attachments

  • 2016-10-20_22.34.36.png
    2016-10-20_22.34.36.png
    1,011.8 KB · Views: 18
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Hawkk

Feedback score
0
Posts
225
Reactions
71
Resources
0
When you do {@title} you need:

Code:
options:
   title: Your title here

And when you do commands, you need to have

"command /command [<text>]:"

So try this:

Code:
options:
  title: Your title here

command /pg [<text>] [<text>]:
    trigger:
        if arg 1 is "create":
            if arg 2 is set:
                if {ARENA::%arg 2%} is not set:
                    set {ARENA::%arg 2%} to arg 2
                    send "{@title} &aSuccesfully created arena %arg 2%"
                else:
                    send "{@title} &aAn arena with that name already exists"
            else:
                send "{@title} &aEnter a name for the arena"
 
Last edited:

lAkjtzAZ0

Deactivated
Feedback score
16
Posts
1,071
Reactions
1,013
Resources
0
the errors are as they sound, tabbing errors. When it says it expects 6 tabs and it only found 5, what does that mean?
 

Hawkk

Feedback score
0
Posts
225
Reactions
71
Resources
0
the errors are as they sound, tabbing errors. When it says it expects 6 tabs and it only found 5, what does that mean?
It means 6 tabs are needed for the skript to work correctly, but it only has 5
 
Status
This thread has been locked.
Top