Aller au contenu
  • 0

BUG GUI


Question

Posté(e)

Bonjour !

 

Je post se sujet car quand je fais un GUI, le skript trouve des erreur de se type :

 

1448807920-bk-erreur.png

 

J'ai les addons suivant :

 

- ExtraSK

- RandomSKBeta

- SkExtras

- SkQuery 3

- SkQuery 4

- skRayFall-1.5.2

- skript2.2

- Umbaska

- WildSkript

Merci d'avance !

 

EDIT :

Voilà le code entier :

option:
   nomdugui: chez baba
   message: %player% vient d'acheter le kit %arg 1% pour la somme de {@prixdukit} $!!
   prixdukit: 10000
   command: /manuaddp %player% essentials.kits.minerais
command /BuyKits [<text>]:
   trigger:
       if arg 1 is not set:
           wait 2 tick
           open chest with 1 row named "{@nomdugui}" to player
           format slot 0 of player with diamond sword named "Kit minerais " with lore "Il coute {@prixdukit}" to close then run [make player execute command "/BuyKits minerais"]
           format slot 1 of player with diamond sword named "Kit explorateur " with lore "Il coute {@prixdukit}" to close then run [make player execute command "/BuyKits explorateur"]   
           format slot 2 of player with diamond sword named "Kit creeper " with lore "Il coute {@prixdukit}" to close then run [make player execute command "/BuyKits creeper"]   
           format slot 3 of player with diamond sword named "Kit alchimiste " with lore "Il coute {@prixdukit}" to close then run [make player execute command "/BuyKits alchimiste"]   
           format slot 4 of player with diamond sword named "Kit druide " with lore "Il coute {@prixdukit}" to close then run [make player execute command "/BuyKits druide"]   
           format slot 5 of player with diamond sword named "Kit construction " with lore "Il coute {@prixdukit}" to close then run [make player execute command "/BuyKits construction"]    
           format slot 6 of player with diamond sword named "Kit enchanteur " with lore "Il coute {@prixdukit}" to close then run [make player execute command "/BuyKits enchanteur"]   

       if arg 1 is "minerais" or "explorateur" or "creeper" or "alchimiste" or "druide" or "construction" or "enchanteur":
           if player's balance >= {@prixdukit}:
               make console execute command "/money take %player% {@prixdukit}"
               send "Tu as perdu {@prixdukit}$"
               make console execute command "{@command}"
               message "Tu vient d'acheter le &6kit %arg 1%&r, il te reste %player's money%"
               broadcast "{@message}"

17 réponses à cette question

Messages recommandés

  • 0
Posté(e)

Yo voici ton skript corrigé

Le broadcast à la fin ne marche pas avec skript 2.2 et je ne sais pas pourquoi O_O !

Tu peux le remplacer par un send ou autre à toi de voir

si tu as encore des erreurs c'est que tu n'as pas les addons nécessaire

 

options:
   nomdugui: chez baba
   message: %player% vient d'acheter le kit %arg 1% pour la somme de {@prixdukit} $!!
   prixdukit: 10000
   command: /manuaddp %player% essentials.kits.minerais
command /buykits [<text>]:
   trigger:
       argument 1 is not set:
           wait 2 tick
           open chest with 1 row named "{@nomdugui}" to player
           format slot 0 of player with diamond sword named "Kit minerais " with lore "Il coute {@prixdukit}" to close then run [make player execute command "/BuyKits minerais"]
           format slot 1 of player with diamond sword named "Kit explorateur " with lore "Il coute {@prixdukit}" to close then run [make player execute command "/BuyKits explorateur"] 
           format slot 2 of player with diamond sword named "Kit creeper " with lore "Il coute {@prixdukit}" to close then run [make player execute command "/BuyKits creeper"] 
           format slot 3 of player with diamond sword named "Kit alchimiste " with lore "Il coute {@prixdukit}" to close then run [make player execute command "/BuyKits alchimiste"] 
           format slot 4 of player with diamond sword named "Kit druide " with lore "Il coute {@prixdukit}" to close then run [make player execute command "/BuyKits druide"] 
           format slot 5 of player with diamond sword named "Kit construction " with lore "Il coute {@prixdukit}" to close then run [make player execute command "/BuyKits construction"]   
           format slot 6 of player with diamond sword named "Kit enchanteur " with lore "Il coute {@prixdukit}" to close then run [make player execute command "/BuyKits enchanteur"] 

       else if arg 1 is "minerais" or "explorateur" or "creeper" or "alchimiste" or "druide" or "construction" or "enchanteur":
           if player's balance >= {@prixdukit}:
               make console execute command "/money take %player% {@prixdukit}"
               send "Tu as perdu {@prixdukit}$"
               make console execute command "{@command}"
               message "Tu vient d'acheter le &6kit %arg 1%&r, il te reste %player's money%"

 

Cordialement iNoXs

  • 0
Posté(e)

Télécharge le le fichier qui est présent dans l'onglet "mon serveur" sur l’accueil du site et tu transfère toute les addons sur ton serveur

  • 0
Posté(e)

Rectification :

command /buykits [<text>]:
   trigger:
       argument 1 is not set:
           open chest with 1 row named "{@nomdugui}" to player
           WAIT 1 TICK
           format slot 0 of player with diamond sword named "Kit minerais " with lore "Il coute {@prixdukit}" to close then run [make player execute command "/BuyKits minerais"]
           format slot 1 of player with diamond sword named "Kit explorateur " with lore "Il coute {@prixdukit}" to close then run [make player execute command "/BuyKits explorateur"] 
           format slot 2 of player with diamond sword named "Kit creeper " with lore "Il coute {@prixdukit}" to close then run [make player execute command "/BuyKits creeper"] 
           format slot 3 of player with diamond sword named "Kit alchimiste " with lore "Il coute {@prixdukit}" to close then run [make player execute command "/BuyKits alchimiste"] 
           format slot 4 of player with diamond sword named "Kit druide " with lore "Il coute {@prixdukit}" to close then run [make player execute command "/BuyKits druide"] 
           format slot 5 of player with diamond sword named "Kit construction " with lore "Il coute {@prixdukit}" to close then run [make player execute command "/BuyKits construction"]   
           format slot 6 of player with diamond sword named "Kit enchanteur " with lore "Il coute {@prixdukit}" to close then run [make player execute command "/BuyKits enchanteur"] 

En Majuscule ce qui a été Changé, le 1 Tick est nécessaire a cette endroit sinon il y aura des Bug, et je te recommande de mettre que SkQuery 3 pas le 4

EDIT : Il te faut a tout pris SkQuery 3 Opérationnel car là, Skript ne reconnait pas l'action que tu veux faire car ton SkQuery 3 n'est pas opérationnel

  • 0
Posté(e)
EDIT : Il te faut a tout pris SkQuery 3 Opérationnel car là, Skript ne reconnait pas l'action que tu veux faire car ton SkQuery 3 n'est pas opérationnel

 

Comment je fais ?

×
×
  • 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.