Aller au contenu
  • 0

Problème GUI (is not a text)


Question

Posté(e)

Bonjours je suis en 1.8.9 et je possède les addons skQuerry et skRayFall

 

J'ai essayer de faire un script tout simple de GUI mais lorsque j'ai essayer de load le script voici ce qui apparait

 

"[skript]Reloasind menu.sk...

'"help"]' is not a text (menu.sk,line 33: format slot 16 of player with comparator named "&eOption" with lore "&aPermet de configurer ses options!" to close then run [make player execute command "help"]')

[skript Encountered 1 error while reloading menu.sk!"

 

En cherchant un peu je suis tomber sur ceci:

https://skript-mc.fr/forum/threads/spawn-is-not-a-text.8940/

 

Le problème était le même mais il ne dit pas comment il la résolu mais juste "mon script était pas fixe" ce qui ne m'aide pas beaucoup!

 

Le plus bizzard étant que un peu au dessu dans mon script il y a une ligne semblable qui marche

format slot 10 of player with fishing rod named "&e&lspawn" with lore "&aSe téléporter au spawn!" to close then run [make player execute command "spawn"]

 

Voici mon code totale

#
#Apprentissage au Menu ! Version 1.0
#par uiytt
#

command /menu.po:
   trigger:
       if player is in world "M01":
           message "&6Menu ouvert." to player
           open chest with 3 row named "&e&lMenu" to player
           wait 1 tick
           format slot 0 of player with light green stained glass named "." to be unstealable
           format slot 1 of player with light green stained glass named "." to be unstealable
           format slot 2 of player with light green stained glass named "." to be unstealable
           format slot 3 of player with light green stained glass named "." to be unstealable
           format slot 4 of player with light green stained glass named "." to be unstealable
           format slot 5 of player with light green stained glass named "." to be unstealable
           format slot 6 of player with light green stained glass named "." to be unstealable
           format slot 7 of player with light green stained glass named "." to be unstealable
           format slot 8 of player with light green stained glass named "." to be unstealable
           format slot 9 of player with light green stained glass named "." to be unstealable
           format slot 17 of player with light green stained glass named "." to be unstealable
           format slot 18 of player with light green stained glass named "." to be unstealable
           format slot 19 of player with light green stained glass named "." to be unstealable
           format slot 20 of player with light green stained glass named "." to be unstealable
           format slot 21 of player with light green stained glass named "." to be unstealable
           format slot 22 of player with light green stained glass named "." to be unstealable
           format slot 23 of player with light green stained glass named "." to be unstealable
           format slot 24 of player with light green stained glass named "." to be unstealable
           format slot 25 of player with light green stained glass named "." to be unstealable
           format slot 26 of player with light green stained glass named "." to be unstealable
           format slot 10 of player with fishing rod named "&e&lspawn" with lore "&aSe téléporter au spawn!" to close then run [make player execute command "spawn"]
           format slot 16 of player with comparator named "&eOption" with lore "&aPermet de configurer ses options!" to close then run [make player execute command "help"]
       else:
           message "&4Vous n'avez pas le droit d'ouvrir un menu dans ce monde!" to player

 

Pouvez vous m'aider si oui Merci :D

 

Signer uiytt

7 réponses à cette question

Messages recommandés

  • 0
Posté(e)
Salut,

 

il faut que tu mettes:

to close then run [make player execute command "/spawn"]

Le / ne change rien...

Essaye avec TuSKe et prend ce code:

#
#Apprentissage au Menu ! Version 1.0
#par uiytt
#

command /menu.po:
   trigger:
       if player is in world "M01":
           message "&6Menu ouvert." to player
           open chest with 3 row named "&e&lMenu" to player
           wait 1 tick
           make gui slot 0 of player with light green stained glass named "&r" to nothing
           make gui slot 1 of player with light green stained glass named "&r" to nothing
           make gui slot 2 of player with light green stained glass named "&r" to nothing
           make gui slot 3 of player with light green stained glass named "&r" to nothing
           make gui slot 4 of player with light green stained glass named "&r" to nothing
           make gui slot 5 of player with light green stained glass named "&r" to nothing
           make gui slot 6 of player with light green stained glass named "&r" to nothing
           make gui slot 7 of player with light green stained glass named "&r" to nothing
           make gui slot 8 of player with light green stained glass named "&r" to nothing
           make gui slot 9 of player with light green stained glass named "&r" to nothing
           make gui slot 17 of player with light green stained glass named "&r" to nothing
           make gui slot 18 of player with light green stained glass named "&r" to nothing
           make gui slot 19 of player with light green stained glass named "&r" to nothing
           make gui slot 20 of player with light green stained glass named "&r" to nothing
           make gui slot 21 of player with light green stained glass named "&r" to nothing
           make gui slot 22 of player with light green stained glass named "&r" to nothing
           make gui slot 23 of player with light green stained glass named "&r" to nothing
           make gui slot 24 of player with light green stained glass named "&r" to nothing
           make gui slot 25 of player with light green stained glass named "&r" to nothing
           make gui slot 26 of player with light green stained glass named "&r" to nothing
           make gui slot 10 of player with fishing rod named "&e&lspawn" with lore "&aSe téléporter au spawn!" to close then run player command "spawn"
           make gui slot 16 of player with comparator named "&eOption" with lore "&aPermet de configurer ses options!" to close then run player command "help"
       else:
           message "&4Vous n'avez pas le droit d'ouvrir un menu dans ce monde!"

J'ai remplacer (quand il y a les vitres) les . par &r au moins la vitre n'a pas de nom (je suppose que tu veut ça)

  • J'aime 1
  • 0
Posté(e)

Non , je l'utilise moi meme ^^

 

Voici un exemple de menu :

 

command /skyworld:
   trigger:
       wait 2 ticks
       open chest with 6 rows named "&f&l[ &b&lSkyWorld &f&l]" to player
       wait 1 ticks
       format slot 0 of player with stained glass pane named "&f&l[&b&lSkyWorld&f&l]" to be unstealable
       format slot 1 of player with stained glass pane named "&f&l[&b&lSkyWorld&f&l]" to be unstealable
       format slot 2 of player with stained glass pane named "&f&l[&b&lSkyWorld&f&l]" to be unstealable
       format slot 3 of player with stained glass pane named "&f&l[&b&lSkyWorld&f&l]" to be unstealable
       format slot 4 of player with stained glass pane named "&f&l[&b&lSkyWorld&f&l]" to be unstealable
       format slot 5 of player with stained glass pane named "&f&l[&b&lSkyWorld&f&l]" to be unstealable
       format slot 6 of player with stained glass pane named "&f&l[&b&lSkyWorld&f&l]" to be unstealable
       format slot 7 of player with stained glass pane named "&f&l[&b&lSkyWorld&f&l]" to be unstealable
       format slot 8 of player with stained glass pane named "&f&l[&b&lSkyWorld&f&l]" to be unstealable
       format slot 9 of player with stained glass pane named "&f&l[&b&lSkyWorld&f&l]" to be unstealable
       if player has an asb island:
           format slot 10 of player with grass named "&b&lSkyBlock" with lore "||&6&lAmmeliore ton île ||&6&lavec ou sans amis||&6&let devient le maître||&6&ldu skyblock||&6&lEtat &f&l: &a&lON||||&6&lJoueurs en &b&lSkyBlock &f&l: &a&l%size of players in world ""ASkyBlock""%||" to close then run [make player execute command "/is"]
       else:
           format slot 10 of player with grass named "&b&lSkyBlock" with lore "||&4&lMerci de créer une île et de ||&4&lrevenir dans le menu pour te téléporté a ton île :D" to be unstealable
       format slot 13 of player with cooked chicken named "&2&lSurvie !" with lore "&2&lArriveras tu a survivre ?||&f&l>&4&l&m----------&f&l[ &2&lETAT &f&l]&4&l&m----------&f&l<||||                            &a&lON||||&4&lJoueurs en &2&lSurvie &f&l: &a&l%size of players in world ""Survie""%||&f&l>&4&l&m---------------------------&f&l<" to close then run [make player execute command "/survie"]
       format slot 16 of player with glowing wool named "&5&lJeux&f&l-&5&lArcades !" with lore "&e&lArriveras tu a finir tout ces petits jeux infernal ?||&f&l>&4&l&m----------&f&l[ &2&lETAT &f&l]&4&l&m----------&f&l<||||                            &4&lOFF||||&6&lJoueurs en &5&lJeux&f&l-&5&lArcades &f&l: &e&l%size of players in world ""Jeux-Arcades""%||&f&l>&4&l&m---------------------------&f&l<" to close then run [make player execute command "/games"]
       format slot 28 of player with glowing 0355:0 named "&c&lRush &f> &eBETA" with lore "&6&lRush dans le camps ennemis et||&6&ldétruit leur lit &f&l!||&6&lAttention il risque de ne pas||&6&lte laisser faire &f&lx)||||&4&lEn developpement||&4&lDate prévue &f&l: &e&l30&f-&e&l03&f-&e&l2017 &4&lvers &e&l18&f&lh" to be unstealable
       format slot 31 of player with diamond chestplate named "&e&lPvP&f&l-&e&lBox" with lore "&a&lBat toi dans une petite||&a&lavec un kit et fait le||&a&lplus de kill que possible||&a&lpour gagner des coins||&a&let te payer un grade ou un kit &f&l!!!||&f&l>&4&l&m----------&f&l[ &a&lETAT &f&l]&4&l&m----------&f&l<||||                            &a&lON||||&6&lJoueurs en &e&lPvP&f&l-&e&lBox &f&l: &a&l%size of players in world ""PvPBox""%||&f&l>&4&l&m---------------------------&f&l<" to close then run [make player execute command "/pvpbox"]
       format slot 34 of player with diamond pickaxe named "&d&lClickGames | &4&lBETA" with lore "&3&lAtteris dans une arène 1v1||&3&lpatiente et pars au minage &f!||&3&lmine le plus de minerais||&3&let obtiens 400 points avant ton adversaire &f&l!!||&f&l>&4&l&m----------&f&l[ &a&lETAT &f&l]&4&l&m----------&f&l<||||                            &a&lON||||&6&lJoueurs en &d&lClickGames &f&l: &a&l%size of players in world ""ClickGames""%||&f&l>&4&l&m---------------------------&f&l<" to close then run [make player execute command "/clickgames join"]
       format slot 17 of player with stained glass pane named "&f&l[&b&lSkyWorld&f&l]" to be unstealable
       format slot 18 of player with stained glass pane named "&f&l[&b&lSkyWorld&f&l]" to be unstealable
       format slot 26 of player with stained glass pane named "&f&l[&b&lSkyWorld&f&l]" to be unstealable
       format slot 27 of player with stained glass pane named "&f&l[&b&lSkyWorld&f&l]" to be unstealable
       format slot 35 of player with stained glass pane named "&f&l[&b&lSkyWorld&f&l]" to be unstealable
       format slot 36 of player with stained glass pane named "&f&l[&b&lSkyWorld&f&l]" to be unstealable
       format slot 37 of player with stained glass pane named "&f&l[&b&lSkyWorld&f&l]" to be unstealable
       format slot 43 of player with stained glass pane named "&f&l[&b&lSkyWorld&f&l]" to be unstealable
       format slot 44 of player with stained glass pane named "&f&l[&b&lSkyWorld&f&l]" to be unstealable
       format slot 45 of player with chest named "&f&l[&4&lInfos&f&l]" with lore "&f&l&m---------------------------------||||                       &4&lRien a informer &f&l!||||&f&l&m---------------------------------" to be unstealable
       format slot 46 of player with stained glass pane named "&f&l[&b&lSkyWorld&f&l]" to be unstealable
       format slot 47 of player with stained glass pane named "&f&l[&b&lSkyWorld&f&l]" to be unstealable
       format slot 48 of player with stained glass pane named "&f&l[&b&lSkyWorld&f&l]" to be unstealable
       format slot 49 of player with stained glass pane named "&f&l[&b&lSkyWorld&f&l]" to be unstealable
       format slot 50 of player with stained glass pane named "&f&l[&b&lSkyWorld&f&l]" to be unstealable
       format slot 51 of player with stained glass pane named "&f&l[&b&lSkyWorld&f&l]" to be unstealable
       format slot 52 of player with stained glass pane named "&f&l[&b&lSkyWorld&f&l]" to be unstealable
       if player has permission "vip":
           format slot 53 of player with skull of player named "                       &b&lAccès VIP" with lore "&6&lBonjour &b&l%player%||&6&lNous te remercions de joueur sur||&6&lnotre serveur pour cela||&6&lnous t'offrons la possibilité de||&6&lrejoindre un espace VIP||&6&lpour ne rencontrer que les VIPs &f&l!||||&a&lAccès autorisé pour %player%||||" to close then run [make player execute command "/vip join"]
       else:
           format slot 53 of player with skull of player named "&a&lAccès VIP" with lore "||&4&lTu n'est pas VIP %player% &f&l!" to be unstealable

 

  • 0
Posté(e)

format slot 53 of player with skull of player named " &b&lAccès VIP" with lore "&6&lBonjour &b&l%player%||&6&lNous te remercions de joueur sur||&6&lnotre serveur pour cela||&6&lnous t'offrons la possibilité de||&6&lrejoindre un espace VIP||&6&lpour ne rencontrer que les VIPs &f&l!||||&a&lAccès autorisé pour %player%||||" to close then run [make player execute command "/vip join"]

tout comme moi ;)

ps a moins que tu ne réponde a quelqu'un d'autre.

++

  • 0
Posté(e)

Très bizzard j'ai juste réécrit tout mon code (exactement pareille) et ça marche je pense que c'était semblable à un truc corrompu.

Bref je vais laisser le poste en non résolu pour voir si qq peut donner une réponse expliquant!

×
×
  • Créer...

Information importante

Nous avons placé des cookies sur votre appareil pour aider à améliorer ce site. Vous pouvez choisir d’ajuster vos paramètres de cookie, sinon nous supposerons que vous êtes d’accord pour continuer.