is not a text error

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

    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.

Spyless

New Member
Jul 23, 2019
5
0
0
script:

Code:
on rightclick with a paper:
    execute player command "/mb"
       
command /mb:
    aliases: /magicband, /magicb, /mband
    executable by: players
    trigger:
        open chest with 3 rows named "&9%player%'s MagicBand" to player
        wait 1 tick
        format slot 3 of player with bed named "&aHotels and Resorts" with lore "&aVisit and rent a room in a Resort!" to close then run [execute player command "/mbr"]
        format slot 5 of player with %player%'s skull named "&aMy Profile" with lore "&aName: &c%player%||&aRank: &3rank||&aBalance: &cbal" to close then run [execute player command "/mbp"]
        format slot 7 of player with clock named "&aPlayer Time" with lore "&aYou can see what time it is for you!" to close then run [execute player command "/mbt"]
        format slot 11 of player with potato named "&aFind Food" with lore "&aVisit a restaurant to get some food!" to close then run [execute player command "/mbf"]
        format slot 12 of player with firework rocket named "&aShows and Events" with lore "&aWatch one of the famous &bDisney &aShows!" to close then run [execute player command "/mbse"]
        format slot 13 of player with minecart named "&aRides and Meet & Greets" with lore "&aView Rides, Attractions, and Meet & Greets you can visit!" to close then run [execute player command "/mbrmg"]
        format slot 14 of player with nether star named "&aPark Menu" with lore "&aVisit our theme parks!" to close then run [execute player command "/mbpm"]
        format slot 15 of player with golden boots named "&aShop" with lore "&aPurchase Items!" to close then run [execute player command "/mbs"]
        format slot 16 of player with iron chestplate named "&aWardrobe Manager" with lore "&aChange your outfit to clothes that you can purchase in shops!" to close then run [execute player command "/mbw"]
        format slot 17 of player with emerald named "&aSocial Media" with lore "&aThis is all our social media links!" to close then run [execute player command "/mbsm"]
       
command /mbr:
    trigger:
        stop
command /mbt:
    trigger:
        stop
command /mbf:
    trigger:
        stop
command /mbp:
    trigger:
        stop
command /mbse:
    trigger:
        stop
command /mbrmg:
    trigger:
        stop
command /mbpm:
    trigger:
        stop
command /mbs:
    trigger:
        stop
command /mbsm:
    trigger:
        stop
command /mbw:
    trigger:
        stop
Skript:

error:
Code:
[22:19:28 INFO]: [Skript] Reloading the config and all scripts...
[22:19:29 INFO]: Loaded a total of 11504 english aliases
[22:19:29 ERROR]: '"/mbr"]' is not a text (magicband.sk, line 10: format slot 3 of player with bed named "&aHotels and Resorts" with lore "&aVisit and rent a room in a Resort!" to close then run [execute player command "/mbr"]')
[22:19:29 ERROR]: '"/mbp"]' is not a text (magicband.sk, line 11: format slot 5 of player with %player%'s skull named "&aMy Profile" with lore "&aName: &c%player%||&aRank: &3%rank%||&aBalance: &c$%bal%" to close then run [execute player command "/mbp"]')
[22:19:29 ERROR]: '"/mbt"]' is not a text (magicband.sk, line 12: format slot 7 of player with clock named "&aPlayer Time" with lore "&aYou can see what time it is for you!" to close then run [execute player command "/mbt"]')
[22:19:29 ERROR]: '"/mbf"]' is not a text (magicband.sk, line 13: format slot 11 of player with potato named "&aFind Food" with lore "&aVisit a restaurant to get some food!" to close then run [execute player command "/mbf"]')
[22:19:29 ERROR]: '"/mbse"]' is not a text (magicband.sk, line 14: format slot 12 of player with firework rocket named "&aShows and Events" with lore "&aWatch one of the famous &bDisney &aShows!" to close then run [execute player command "/mbse"]')
[22:19:29 ERROR]: '"/mbrmg"]' is not a text (magicband.sk, line 15: format slot 13 of player with minecart named "&aRides and Meet & Greets" with lore "&aView Rides, Attractions, and Meet & Greets you can visit!" to close then run [execute player command "/mbrmg"]')
[22:19:29 ERROR]: '"/mbpm"]' is not a text (magicband.sk, line 16: format slot 14 of player with nether star named "&aPark Menu" with lore "&aVisit our theme parks!" to close then run [execute player command "/mbpm"]')
[22:19:29 ERROR]: '"/mbs"]' is not a text (magicband.sk, line 17: format slot 15 of player with golden boots named "&aShop" with lore "&aPurchase Items!" to close then run [execute player command "/mbs"]')
[22:19:29 ERROR]: '"/mbw"]' is not a text (magicband.sk, line 18: format slot 16 of player with iron chestplate named "&aWardrobe Manager" with lore "&aChange your outfit to clothes that you can purchase in shops!" to close then run [execute player command "/mbw"]')
[22:19:29 ERROR]: '"/mbsm"]' is not a text (magicband.sk, line 19: format slot 17 of player with emerald named "&aSocial Media" with lore "&aThis is all our social media links!" to close then run [execute player command "/mbsm"]')
[22:19:29 INFO]: Loaded 1 script with a total of 1 trigger and 11 commands in 0.52 seconds
[22:19:29 INFO]: [Skript] Encountered 10 errors while reloading the config and all scripts!
 
thus:
code_language.skript:
A:
format a gui slot (number of slot) of (player) with (item) named "(name)" with lore "(lore)" to close:
    #when you click the slot, will run everything that is inside the code but the GUI will close.#
B:
format a gui slot (number of slot) of (player) with (item) named "(name)" with lore "(lore)" to run:
    #when you click the slot, everything inside the code will run but the inventory will remain open.#
C:
format a gui slot (number of slot) of (player) with (item) named "(name)" with lore "(lore)" to do nothing
#In this slot nothing will be done when clicking. You can not drop or anything like that.#
 
TuSKe
[doublepost=1563849115,1563849085][/doublepost]
upload_2019-7-22_22-31-45.png

The percentage of an expression is only used when it is in quotes.
 

Attachments

  • upload_2019-7-22_22-30-13.png
    upload_2019-7-22_22-30-13.png
    15.3 KB · Views: 236
Code:
on rightclick with a paper:
    execute player command "/mb"
        
command /mb:
    aliases: /magicband, /magicb, /mband
    executable by: players
    trigger:
        create a gui with virtual chest named "MagicBand" with 3 rows:
        
            make gui slot 3 to bed named "&aHotels and Resorts" with lore "&aVisit and rent a room in a Resort!":
                make player execute command "mbr"
            make gui slot 5 to %player%'s skull named "&aMy Profile" with lore "&aName: &c%player%||&aRank: &3rank||&aBalance: &cbal":
                make player execute command "mbp"
            make gui slot 7 to clock named "&aPlayer Time" with lore "&aYou can see what time it is for you!":
                make player execute command "mbt"
            make gui slot 11 to potato named "&aFind Food" with lore "&aVisit a restaurant to get some food!":
                make player execute command "mbf"
            make gui slot 12 to firework rocket named "&aShows and Events" with lore "&aWatch one of the famous &bDisney &aShows!":
                make player execute command "mbse"
            make gui slot 13 to minecart named "&aRides and Meet & Greets" with lore "&aView Rides, Attractions, and Meet & Greets you can visit!":
                make player execute command "mbrmg"
            make gui slot 14 to nether star named "&aPark Menu" with lore "&aVisit our theme parks!":
                make player execute command "mbpm"
            make gui slot 15 to golden boots named "&aShop" with lore "&aPurchase Items!":
                make player execute command "mbs"
            make gui slot 16 to iron chestplate named "&aWardrobe Manager" with lore "&aChange your outfit to clothes that you can purchase in shops!":
                make player execute command "mbw"
            make gui slot 17 to emerald named "&aSocial Media" with lore "&aThis is all our social media links!":
                make player execute command "mbsm"
        
command /mbr:
    trigger:
        stop
command /mbt:
    trigger:
        stop
command /mbf:
    trigger:
        stop
command /mbp:
    trigger:
        stop
command /mbse:
    trigger:
        stop
command /mbrmg:
    trigger:
        stop
command /mbpm:
    trigger:
        stop
command /mbs:
    trigger:
        stop
command /mbsm:
    trigger:
        stop
command /mbw:
    trigger:
        stop

still getting this

Code:
[23:06:26 INFO]: [Skript] Reloading the config and all scripts...
[23:06:26 INFO]: Loaded a total of 11504 english aliases
[23:06:26 ERROR]: 'create a gui with virtual chest named "MagicBand" with 3 rows' is not a boolean (yes/no) (magicband.sk, line 9: create a gui with virtual chest named "MagicBand" with 3 rows:')
[23:06:26 INFO]: Loaded 1 script with a total of 1 trigger and 11 commands in 0.03 seconds
[23:06:26 INFO]: [Skript] Encountered 1 error while reloading the config and all scripts!
 
Code:
on rightclick with a paper:
    execute player command "/mb"
       
command /mb:
    aliases: /magicband, /magicb, /mband
    executable by: players
    trigger:
        create a gui with virtual chest named "MagicBand" with 3 rows:
       
            make gui slot 3 to bed named "&aHotels and Resorts" with lore "&aVisit and rent a room in a Resort!":
                make player execute command "mbr"
            make gui slot 5 to %player%'s skull named "&aMy Profile" with lore "&aName: &c%player%||&aRank: &3rank||&aBalance: &cbal":
                make player execute command "mbp"
            make gui slot 7 to clock named "&aPlayer Time" with lore "&aYou can see what time it is for you!":
                make player execute command "mbt"
            make gui slot 11 to potato named "&aFind Food" with lore "&aVisit a restaurant to get some food!":
                make player execute command "mbf"
            make gui slot 12 to firework rocket named "&aShows and Events" with lore "&aWatch one of the famous &bDisney &aShows!":
                make player execute command "mbse"
            make gui slot 13 to minecart named "&aRides and Meet & Greets" with lore "&aView Rides, Attractions, and Meet & Greets you can visit!":
                make player execute command "mbrmg"
            make gui slot 14 to nether star named "&aPark Menu" with lore "&aVisit our theme parks!":
                make player execute command "mbpm"
            make gui slot 15 to golden boots named "&aShop" with lore "&aPurchase Items!":
                make player execute command "mbs"
            make gui slot 16 to iron chestplate named "&aWardrobe Manager" with lore "&aChange your outfit to clothes that you can purchase in shops!":
                make player execute command "mbw"
            make gui slot 17 to emerald named "&aSocial Media" with lore "&aThis is all our social media links!":
                make player execute command "mbsm"
       
command /mbr:
    trigger:
        stop
command /mbt:
    trigger:
        stop
command /mbf:
    trigger:
        stop
command /mbp:
    trigger:
        stop
command /mbse:
    trigger:
        stop
command /mbrmg:
    trigger:
        stop
command /mbpm:
    trigger:
        stop
command /mbs:
    trigger:
        stop
command /mbsm:
    trigger:
        stop
command /mbw:
    trigger:
        stop

still getting this

Code:
[23:06:26 INFO]: [Skript] Reloading the config and all scripts...
[23:06:26 INFO]: Loaded a total of 11504 english aliases
[23:06:26 ERROR]: 'create a gui with virtual chest named "MagicBand" with 3 rows' is not a boolean (yes/no) (magicband.sk, line 9: create a gui with virtual chest named "MagicBand" with 3 rows:')
[23:06:26 INFO]: Loaded 1 script with a total of 1 trigger and 11 commands in 0.03 seconds
[23:06:26 INFO]: [Skript] Encountered 1 error while reloading the config and all scripts!
I don't recommend doing that.
upload_2019-7-23_19-28-36.png
 
Status
Not open for further replies.