Solved What´s wrong?

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

xCoini

Member
Apr 19, 2019
14
0
0
18
Code:
on chat:
            if {chat.%player%} is true:
            cancel event
            send "&cNo"


The error is:

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 start a section.
("if {chat.%player%} is true:")
 
Last edited:
Code:
on chat:
            if {chat.%player%} is true:
            cancel event
            send "&cNo"


The error is:

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 start a section.
("if {chat.%player%} is true:")
You put the ":" in the same distance as the tabulator.
As it should be:
code_language.skript:
on chat:
    if {chat.%player%} is true:
        cancel event
        send "&cNo"
How did you place it:
code_language.skript:
on chat:
    if {chat.%player%} is true:
    cancel event
    send "&cNo"
 
Status
Not open for further replies.