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.

line or line?

Discussion in 'Skript' started by TheRobs, Oct 13, 2019.

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

    TheRobs Member

    Joined:
    Jan 26, 2017
    Messages:
    14
    Likes Received:
    0
    hello, how are you?
    Well I'm having problem with some sk lines, can anyone help me?

    Code (Text):
    1.  
    2. on sign change:
    3.     line 1 of event-block is "[FunnyShop]" or "[FShop]"
    4.     set {_prefix} to "%{FShop::Messages::GlobalPrefix}%"
    5.     if player's gamemode is creative:
    6.  
    7.         if line 2 of event-block is "Comprar":
    8.             if player has permission "fshop.Comprarsign":
    9.                 if line 3 of event-block is not empty:
    10.                     if line 4 of event-block is not empty:
    11.                         set {_Line1} to "%{FShop::Messages::ComprarSignLine1}%"
    12.                         set {_Line2} to "%{FShop::Messages::ComprarSignLine2}%"
    13.                         set {_Line3} to "%{FShop::Messages::ComprarSignLine3}%"
    14.                         set {_Line4} to "%{FShop::Messages::ComprarSignLine4}%"
    15.                         set {guild::shopitem::%line 3%} to "%line 3%" parsed as item
    16.                         set {guild::priceitem::%line 3%} to "%line 4%" parsed as number
    17.                         set line 1 of event-block to "%{_Line1}%"
    18.                         set line 2 of event-block to "%{_Line2}%%line 3%"
    19.                         set line 3 of event-block to "%{_Line3}%$%line 4%"
    20.                         set line 4 of event-block to "%{_Line4}%"
    21.                     else:
    22.                         message "%{_prefix}% &cVocê esqueceu de digitar o preço!"
    23.                 else:
    24.                     message "%{_prefix}% &cVocê esqueceu de colocar o item!"
    25.             else:
    26.                 message "%{_prefix}% &cVocê não tem permissão para isso!"
    27.  
    He gives the following error on the console and this is very bad

    line 3 of event-block is already a text, so you should not put it in one (e.g. line 3 of event-block instead of "%line 3 of event-block%") (novo.sk, line 45: set {guild::shopitem::%line 3%} to "%line 3%" parsed as item')
     
  2. TPGamesNL

    Supporter Addon Developer Dev Programme

    Joined:
    Jan 20, 2018
    Messages:
    1,501
    Likes Received:
    107
    Medals:
    1) That is not an error
    2) So it is definitely not very bad.
    3) Fix it by removing the quotes and percentage signs around the line 3 and line 4 parts. The warning is given because the line of sign expression is already a text, so you don't need to make it a text by using quotes and percentage signs
     
  3. AsuDev

    VIP

    Joined:
    Jan 27, 2017
    Messages:
    243
    Likes Received:
    21
    You can also turn off this warning in the Skript config if you want.
     
Thread Status:
Not open for further replies.

Share This Page

Loading...