[SOLVED] Unexpected entry Skript error please help

Discussion in 'Skript' started by IlLuMMiNTi, Jan 31, 2020.

Thread Status:
Not open for further replies.
  1. Im trying to make a skript for my server but there is a error and i can't fix it please help me
    Skript code :
    # hi
    #
    options:
    #=options==========================================================
    Prefix: &6&l[&2&lBA&3&lTD&6&l] # BATD SERVER SKRIPT
    #===============================================================

    command /batd <text>:
    permission: skript.batd.perm
    description: BLAZKENTH ARDA TOWER DEFENCE PLUGIN
    usage: /batd <ah>
    trigger:
    if arg-1 is not set:
    message "{@Prefix} &7 batd skript test"
    if %arg 1% is "ah":
    apply night vision to the player for 300 seconds
    apply resistance to the player for 300 seconds
    apply absorption to the player for 300 seconds
    apply strength to the player for 300 seconds
    broadcast "{@Prefix} &7 %player% HAX ACTIVATED."
     
  2. 1) Please put your code into. code block
    2)
    Are we supposed to be guessing the error here?!?!?!
    Would greatly help if you showed the error
     
  3. if %arg 1% is "ah":

    you need to use if arg 1, not %arg 1%
     
  4. Code (Text):

    # hi
    #

    options:
    #=options==========================================================
        Prefix: &6&l[&2&lBA&3&lTD&6&l] # BATD SERVER SKRIPT
    #===============================================================

    command /batd <text>:
        permission: skript.batd.perm
        description: a skript
        trigger:
        if arg-1 is not set:
            message "{@Prefix} &7 batd skript test"
        if arg 1 is "ah":
            apply night vision to the player for 300 seconds
            apply resistance to the player for 300 seconds
            apply absorption to the player for 300 seconds
            apply strength to the player for 300 seconds  
            broadcast "{@Prefix} &7 %player% HAX ACTIVATED."
    this is skript and i have screenshot of error plzhelp.png
     
  5. This entire section needs to be indented 1.
    Any time a line ends with a colon, it starts a new section, and your trigger section is empty, due to you not indenting after it:

    Screen Shot 2020-02-01 at 2.20.40 AM.png
     
    • Like Like x 1
  6. aaaa now its working thanks for helping <3
     
  7. also how can i do clear all effects ?
    like :

    Code (Text):
            if arg 1 is "ah":
                clear all effects # <---- THIS
                apply night vision 3 to the player for 300 seconds
     
  8. You're welcome

    I actually have no clue how to do that in Skript
     
    • Creative Creative x 1
  9. oh ok then i will search in google for that
     
  10. my problem solved
     
Thread Status:
Not open for further replies.