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.

Why is this gui not working...

Discussion in 'Skript' started by Matias Lund, Nov 29, 2022.

Tags:
Thread Status:
Not open for further replies.
  1. Matias Lund

    Matias Lund Member

    Joined:
    Jan 25, 2021
    Messages:
    10
    Likes Received:
    0
    Hey, i can't really find the reason for this not working, Skript says theres no problem with the skript but the server says that there are no command for /compassgui. Can anyone help?

    upload_2022-11-29_20-13-46.png


    - Thanks

    (BTW: I have no Skript Addons only the Skript Plugin)
     

    Attached Files:

    #1 Matias Lund, Nov 29, 2022
    Last edited: Nov 29, 2022
  2. Merrical

    Supporter

    Joined:
    Jul 27, 2020
    Messages:
    29
    Likes Received:
    3
    I'm pretty sure you are missing the "to player" at the end.

    (P.S) not sure if that's the reason. that line should work.

    Code (Text):
    1. open chest inventory with 3 rows named "Like this" to player
     
  3. Matias Lund

    Matias Lund Member

    Joined:
    Jan 25, 2021
    Messages:
    10
    Likes Received:
    0
    Thanks for the reply, and yes forgot to write that but it still says "Uknown command. Type "/help for help.". The standard message when a command doesn't work.
     
  4. Merrical

    Supporter

    Joined:
    Jul 27, 2020
    Messages:
    29
    Likes Received:
    3
    Watch your indentation
     

    Attached Files:

    • 123.png
      123.png
      File size:
      10.5 KB
      Views:
      20
  5. Matias Lund

    Matias Lund Member

    Joined:
    Jan 25, 2021
    Messages:
    10
    Likes Received:
    0
    I'm new sorry, can you explain what "indentation" means when it comes to Skript?
     
  6. Merrical

    Supporter

    Joined:
    Jul 27, 2020
    Messages:
    29
    Likes Received:
    3
    Yes, an indentation is the amount per line statement. on the 2nd line, you had two tabs or eight spaces. you would have to repeat the same amount of "indentation" for the rest of the lines. if you don't want to have to space 8 times, or tab twice, lower the indentation amount.
    Instead of:
    Code (Text):
    1. command /compassgui:
    2.         trigger:
    3.             open chest with 1 row named "Servers"
    you should do something like:
    Code (Text):
    1. command /compassgui:
    2.     trigger:
    3.         open chest with 1 row named "Servers"
     
  7. Matias Lund

    Matias Lund Member

    Joined:
    Jan 25, 2021
    Messages:
    10
    Likes Received:
    0
    Thank you very much :emoji_slight_smile: but still, when i use the command in the chat Skript tells me theres a problem in line 3 but i can't find the problem in the line. And Skript says it doesn't understand the condition/effect. Do you have any tips on this problem? And again Thank you :emoji_slight_smile:
     
  8. Merrical

    Supporter

    Joined:
    Jul 27, 2020
    Messages:
    29
    Likes Received:
    3
    My earlier reply will solve this problem.
    --- Double Post Merged, Nov 29, 2022, Original Post Date: Nov 29, 2022 ---
    Here
     
  9. Matias Lund

    Matias Lund Member

    Joined:
    Jan 25, 2021
    Messages:
    10
    Likes Received:
    0
    Oh my bad, forgot that. Thank you very much :emoji_slight_smile:
     
  10. Merrical

    Supporter

    Joined:
    Jul 27, 2020
    Messages:
    29
    Likes Received:
    3
    No problem!
     
Thread Status:
Not open for further replies.

Share This Page

Loading...