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.

Errors in console!

Discussion in 'Skript' started by Rettox, Feb 21, 2017.

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

    Rettox Member

    Joined:
    Feb 21, 2017
    Messages:
    21
    Likes Received:
    2
    Hello there. I'm having a problem with errors in console. I wrote 4 commands, completely correctly. However, skript is not reading them and throwing errors.
    >[2K [14:22:17 INFO]: [Skript] Reloading skillpvp.sk...
    >[2K [14:22:17 ERROR]: #!#!
    >[2K [14:22:17 ERROR]: #!#! [Skript] Severe Error:
    >[2K [14:22:17 ERROR]: #!#! Could not load skillpvp.sk
    >[2K [14:22:17 ERROR]: #!#!
    >[2K [14:22:17 ERROR]: #!#! If you're developing an add-on for Skript this likely means that you have done something wrong.
    >[2K [14:22:17 ERROR]: #!#! If you're a server admin however please go to https://github.com/bensku/Skript/issues/
    >[2K [14:22:17 ERROR]: #!#! and check whether this error has already been reported.
    >[2K [14:22:17 ERROR]: #!#! If not please create a new ticket with a meaningful title, copy & paste this whole error into it (or use paste service),
    >[2K [14:22:17 ERROR]: #!#! and describe what you did before it happened and/or what you think caused the error.
    >[2K [14:22:17 ERROR]: #!#! If you think that it's a trigger that's causing the error please post the trigger as well.
    >[2K [14:22:17 ERROR]: #!#! By following this guide fixing the error should be easy and done fast.
    >[2K [14:22:17 ERROR]: #!#!
    >[2K [14:22:17 ERROR]: #!#! Stack trace:
    >[2K [14:22:17 ERROR]: #!#! java.lang.ArrayIndexOutOfBoundsException: -1
    >[2K [14:22:17 ERROR]: #!#! at java.util.ArrayList.elementData(ArrayList.java:418)
    >[2K [14:22:17 ERROR]: #!#! at java.util.ArrayList.get(ArrayList.java:431)
    >[2K [14:22:17 ERROR]: #!#! at ch.njol.skript.expressions.ExprArgument.init(ExprArgument.java:98)
    >[2K [14:22:17 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:249)
    >[2K [14:22:17 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:176)
    >[2K [14:22:17 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parseSingleExpr(SkriptParser.java:321)
    >[2K [14:22:17 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parseExpression(SkriptParser.java:418)
    >[2K [14:22:17 ERROR]: #!#! at ch.njol.skript.lang.VariableString.newInstance(VariableString.java:197)
    >[2K [14:22:17 ERROR]: #!#! at ch.njol.skript.lang.VariableString.newInstance(VariableString.java:109)
    >[2K [14:22:17 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parseSingleExpr(SkriptParser.java:319)
    >[2K [14:22:17 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parseExpression(SkriptParser.java:418)
    >[2K [14:22:17 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1132)
    >[2K [14:22:17 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:221)
    >[2K [14:22:17 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:176)
    >[2K [14:22:17 ERROR]: #!#! at ch.njol.skript.lang.Condition.parse(Condition.java:83)
    >[2K [14:22:17 ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:833)
    >[2K [14:22:17 ERROR]: #!#! at ch.njol.skript.command.Commands.loadCommand(Commands.java:467)
    >[2K [14:22:17 ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadScript(ScriptLoader.java:472)
    >[2K [14:22:17 ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:271)
    >[2K [14:22:17 ERROR]: #!#! at ch.njol.skript.SkriptCommand.onCommand(SkriptCommand.java:167)
    >[2K [14:22:17 ERROR]: #!#! at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44)
    >[2K [14:22:17 ERROR]: #!#! at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141)
    >[2K [14:22:17 ERROR]: #!#! at org.bukkit.craftbukkit.v1_11_R1.CraftServer.dispatchCommand(CraftServer.java:650)
    >[2K [14:22:17 ERROR]: #!#! at org.bukkit.craftbukkit.v1_11_R1.CraftServer.dispatchServerCommand(CraftServer.java:636)
    >[2K [14:22:17 ERROR]: #!#! at net.minecraft.server.v1_11_R1.DedicatedServer.aM(DedicatedServer.java:437)
    >[2K [14:22:17 ERROR]: #!#! at net.minecraft.server.v1_11_R1.DedicatedServer.D(DedicatedServer.java:400)
    >[2K [14:22:17 ERROR]: #!#! at net.minecraft.server.v1_11_R1.MinecraftServer.C(MinecraftServer.java:678)
    >[2K [14:22:17 ERROR]: #!#! at net.minecraft.server.v1_11_R1.MinecraftServer.run(MinecraftServer.java:576)
    >[2K [14:22:17 ERROR]: #!#! at java.lang.Thread.run(Thread.java:745)
    >[2K [14:22:17 ERROR]: #!#!
    >[2K [14:22:17 ERROR]: #!#! Version Information:
    >[2K [14:22:17 ERROR]: #!#! Skript: 2.2-dev24b
    >[2K [14:22:17 ERROR]: #!#! Bukkit: 1.11.2-R0.1-SNAPSHOT
    >[2K [14:22:17 ERROR]: #!#! Minecraft: 1.11.2
    >[2K [14:22:17 ERROR]: #!#! Java: 1.8.0_121 (Java HotSpot(TM) 64-Bit Server VM 25.121-b13)
    >[2K [14:22:17 ERROR]: #!#! OS: Linux amd64 3.16.0-0.bpo.4-amd64
    >[2K [14:22:17 ERROR]: #!#!
    >[2K [14:22:17 ERROR]: #!#! Running CraftBukkit: false
    >[2K [14:22:17 ERROR]: #!#!
    >[2K [14:22:17 ERROR]: #!#! Current node: if "%arg 0%" is not set: (skillpvp.sk, line 17)
    >[2K [14:22:17 ERROR]: #!#! Current item: null
    >[2K [14:22:17 ERROR]: #!#!
    >[2K [14:22:17 ERROR]: #!#! Thread: Server thread
    >[2K [14:22:17 ERROR]: #!#!
    >[2K [14:22:17 ERROR]: #!#! End of Error.
    >[2K [14:22:17 ERROR]: #!#!
    >[2K [14:22:17 INFO]: [Skript] Successfully reloaded skillpvp.sk.


    Don't mind "%arg 0%" as i tried every format.
     
  2. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    220
    There's no such thing as "argument 0".

    Skript is not zero-indexed, meaning that 1 is used for the first value (instead of 0 in the majority of languages)
     
    • Agree Agree x 1
  3. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    220
    Many thanks. Looks like i forgot basics after 2 weeks of scripting pause...
     
Thread Status:
Not open for further replies.

Share This Page

Loading...