line or line?

  • 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!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

TheRobs

Member
Jan 26, 2017
16
0
1
23
hello, how are you?
Well I'm having problem with some sk lines, can anyone help me?

Code:
on sign change:
    line 1 of event-block is "[FunnyShop]" or "[FShop]"
    set {_prefix} to "%{FShop::Messages::GlobalPrefix}%"
    if player's gamemode is creative:

        if line 2 of event-block is "Comprar":
            if player has permission "fshop.Comprarsign":
                if line 3 of event-block is not empty:
                    if line 4 of event-block is not empty:
                        set {_Line1} to "%{FShop::Messages::ComprarSignLine1}%"
                        set {_Line2} to "%{FShop::Messages::ComprarSignLine2}%"
                        set {_Line3} to "%{FShop::Messages::ComprarSignLine3}%"
                        set {_Line4} to "%{FShop::Messages::ComprarSignLine4}%"
                        set {guild::shopitem::%line 3%} to "%line 3%" parsed as item
                        set {guild::priceitem::%line 3%} to "%line 4%" parsed as number
                        set line 1 of event-block to "%{_Line1}%"
                        set line 2 of event-block to "%{_Line2}%%line 3%"
                        set line 3 of event-block to "%{_Line3}%$%line 4%"
                        set line 4 of event-block to "%{_Line4}%"
                    else:
                        message "%{_prefix}% &cVocê esqueceu de digitar o preço!"
                else:
                    message "%{_prefix}% &cVocê esqueceu de colocar o item!"
            else:
                message "%{_prefix}% &cVocê não tem permissão para isso!"

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')
 
hello, how are you?
Well I'm having problem with some sk lines, can anyone help me?

Code:
on sign change:
    line 1 of event-block is "[FunnyShop]" or "[FShop]"
    set {_prefix} to "%{FShop::Messages::GlobalPrefix}%"
    if player's gamemode is creative:

        if line 2 of event-block is "Comprar":
            if player has permission "fshop.Comprarsign":
                if line 3 of event-block is not empty:
                    if line 4 of event-block is not empty:
                        set {_Line1} to "%{FShop::Messages::ComprarSignLine1}%"
                        set {_Line2} to "%{FShop::Messages::ComprarSignLine2}%"
                        set {_Line3} to "%{FShop::Messages::ComprarSignLine3}%"
                        set {_Line4} to "%{FShop::Messages::ComprarSignLine4}%"
                        set {guild::shopitem::%line 3%} to "%line 3%" parsed as item
                        set {guild::priceitem::%line 3%} to "%line 4%" parsed as number
                        set line 1 of event-block to "%{_Line1}%"
                        set line 2 of event-block to "%{_Line2}%%line 3%"
                        set line 3 of event-block to "%{_Line3}%$%line 4%"
                        set line 4 of event-block to "%{_Line4}%"
                    else:
                        message "%{_prefix}% &cVocê esqueceu de digitar o preço!"
                else:
                    message "%{_prefix}% &cVocê esqueceu de colocar o item!"
            else:
                message "%{_prefix}% &cVocê não tem permissão para isso!"

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')
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
 
hello, how are you?
Well I'm having problem with some sk lines, can anyone help me?

code_language.skript:
on sign change:
    line 1 of event-block is "[FunnyShop]" or "[FShop]"
    set {_prefix} to "%{FShop::Messages::GlobalPrefix}%"
    if player's gamemode is creative:

        if line 2 of event-block is "Comprar":
            if player has permission "fshop.Comprarsign":
                if line 3 of event-block is not empty:
                    if line 4 of event-block is not empty:
                        set {_Line1} to "%{FShop::Messages::ComprarSignLine1}%"
                        set {_Line2} to "%{FShop::Messages::ComprarSignLine2}%"
                        set {_Line3} to "%{FShop::Messages::ComprarSignLine3}%"
                        set {_Line4} to "%{FShop::Messages::ComprarSignLine4}%"
                        set {guild::shopitem::%line 3%} to "%line 3%" parsed as item
                        set {guild::priceitem::%line 3%} to "%line 4%" parsed as number
                        set line 1 of event-block to "%{_Line1}%"
                        set line 2 of event-block to "%{_Line2}%%line 3%"
                        set line 3 of event-block to "%{_Line3}%$%line 4%"
                        set line 4 of event-block to "%{_Line4}%"
                    else:
                        message "%{_prefix}% &cVocê esqueceu de digitar o preço!"
                else:
                    message "%{_prefix}% &cVocê esqueceu de colocar o item!"
            else:
                message "%{_prefix}% &cVocê não tem permissão para isso!"

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')
You can also turn off this warning in the Skript config if you want.
 
Status
Not open for further replies.