1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved Could someone tell me where the errors are?

Discussion in 'Skript' started by christianmv84, Dec 21, 2017.

Thread Status:
Not open for further replies.
  1. christianmv84

    christianmv84 Active Member

    Joined:
    Jul 20, 2017
    Messages:
    50
    Likes Received:
    0
    Could someone tell me where the errors are?

    Code (Skript):
    1. on chat:
    2.     cancel event
    3.     if player has permission "xkmbg.admin"
    4.         send json of "&8&l[" then "&6&lX" tooltip "&6Look up to player" suggest "/lookup %player%" then "&3&lK" tooltip "&3Kick to player" suggest "/kick %player%" then "&4&lB" tooltip "Ban to player" suggest "/ban %player%" then "&5&lG" tooltip "&5Go to player" suggest "/tp %player%" then "&8&l]" then " %colored player's name% &7: &f%message%" to player
    5.     else:
    6.         send "%player's display name% &7: &f%message%" to players
    [Skript] Reloading the config and all scripts...
    [18:21:38 INFO]: Loaded a total of 12584 english aliases
    [18:21:38 WARN]: Possible name conflict of variables {m::%loop-index%} and {m::*} (there might be more conflicts). (json.sk, line 191: set {_m::%loop-index%} to "\"""# """')
    [18:21:38 ERROR]: indentation error: expected 1 tab, but found 2 tabs (MineFlame.sk, line 89: send json of "&8&l[" then "&6&lX" tooltip "&6Look up to player" suggest "/lookup %player%" then "&3&lK" tooltip "&3Kick to player" suggest "/kick %player%" then "&4&lB" tooltip "Ban to player" suggest "/ban %player%" then "&5&lG" tooltip "&5Go to player" suggest "/tp %player%" then "&8&l]" then " %colored player's name% &7: &f%message%" to player')
    [18:21:39 ERROR]: Can't understand this condition/effect: if player has permission "xkmbg.admin" (MineFlame.sk, line 88: if player has permission "xkmbg.admin"')
    [18:21:39 ERROR]: 'else' has to be placed just after an 'if' or 'else if' section (MineFlame.sk, line 90: else:')
    [18:21:40 INFO]: Loaded 2 scripts with a total of 6 triggers and 36 commands in 2.33 seconds
    [18:21:40 INFO]: [Skript] Encountered 3 errors while reloading the config and all scripts!
     
  2. FinalPlayer024

    FinalPlayer024 Active Member

    Joined:
    Oct 19, 2017
    Messages:
    95
    Likes Received:
    4
    Colon after "xkmbg.admin"
     
Thread Status:
Not open for further replies.

Share This Page

Loading...