Solved Could someone tell me where the errors are?

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

christianmv84

Active Member
Jul 20, 2017
50
0
0
59
Could someone tell me where the errors are?

code_language.skript:
on chat:
    cancel event
    if player has permission "xkmbg.admin"
        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
    else:
        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!
 
Status
Not open for further replies.