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 Can't compare 'line 1 of sign' with a text

Discussion in 'Skript' started by Deceyven, Oct 21, 2020.

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

    Deceyven Member

    Joined:
    Oct 19, 2020
    Messages:
    2
    Likes Received:
    0
    Hello, I having some issue on writing a skript for sign shop:

    on rightclick:
    block is a sign
    line 1 of sign is "[Shop]"
    player has 2 gold nuggets
    remove 2 gold nuggets from player
    give player 1 bread
    message "<light green>You bought a bread."


    The Error I Face is:
    Line 3: Can't compare 'line 1 of sign' with a text (script.sk, line 3: line 1 of sign is "[Shop]"')
    --- Double Post Merged, Oct 21, 2020, Original Post Date: Oct 21, 2020 ---
    Code (Text):
    1. on rightclick on sign:
    2.         line 1 of event-block is "[Shop]"
    3.         player has 2 gold nuggets
    4.         remove 2 gold nuggets from player
    5.         give player 1 bread
    6.         message "<light green>You bought a bread."
     
  2. GRRRilla_Ninja

    Joined:
    Sep 25, 2017
    Messages:
    18
    Likes Received:
    0
    What versions of Skript/Spigot are you running? I tested your exact code on Spigot 1.16.2 and Skript 2.5 and it worked perfectly.
     
Thread Status:
Not open for further replies.

Share This Page

Loading...