Aller au contenu
  • 0

Aide pour une boutique sur le jeu!


Question

Posté(e)

Salut,

J'ai une nouvelle fois un problème, j'aimerai faire une boutique, mais ça ne marche pas :c

 

Code :

if player's balance is more than 6499:
                   if {vip.%player%} is true:
                       send " &7Tu a déjà acheté ce grade."
                   else:
                       make console execute command "/money take %player% 6500"
                       wait 1 second
                       make console execute command "/pex user %player% group set VIP"
                       wait 0.5 tick
                       make console execute command "/ne prefix %player% &2[VIP] &e"
                       wait 2 second
                       broadcast " &7Le joueur &2&l[VIP] %player% &7a acheté le grade &2VIP &4"
               else:
                   send " &7Tu n'a pas assez d'argent pour ce grade. "

 

Erreurs :

[spoiler=Erreurs]

12:45:33 INFO]: [skript] Reloading the config and all scripts...
[12:45:33 INFO]: Loaded a total of 12584 english aliases
[12:45:33 ERROR]: Can't compare 'player's balance' with an integer (menu.sk, line 71: if player's balance is more than 6499:')
[12:45:33 ERROR]: 'else' has to be placed just after an 'if' or 'else if' section (menu.sk, line 82: else:')
[12:45:33 ERROR]: Can't compare 'player's balance' with an integer (menu.sk, line 86: if player's balance is more than 12999:')
[12:45:33 ERROR]: 'else' has to be placed just after an 'if' or 'else if' section (menu.sk, line 97: else:')
[12:45:33 INFO]: Loaded 1 script with a total of 1 trigger and 3 commands in 0.22 seconds
[12:45:33 INFO]: [skript] Encountered 4 errors while reloading the config and all scripts!

 

 

9 réponses à cette question

Messages recommandés

  • 0
Posté(e)

Ouais je sais mais pour le moment ces pas le plus important, le plus important est :

[12:45:33 ERROR]: Can't compare 'player's balance' with an integer (menu.sk, line 71: if player's balance is more than 6499:')

  • 0
Posté(e)

Esseye sa:

if player's balance is more than 6499:
   if {vip.%player%} is true:
       send " &7Tu a déjà acheté ce grade."
   else:
       make console execute command "/money take %player% 6500"
       wait 1 second
       make console execute command "/pex user %player% group set VIP"
       wait 0.5 tick
       make console execute command "/ne prefix %player% &2[VIP] &e"
       wait 2 second
       broadcast " &7Le joueur &2&l[VIP] %player% &7a acheté le grade &2VIP &4"
else:
   send " &7Tu n'a pas assez d'argent pour ce grade. "

  • 0
Posté(e)

12:45:33 INFO]: [skript] Reloading the config and all scripts...

[12:45:33 INFO]: Loaded a total of 12584 english aliases

[12:45:33 ERROR]: Can't compare 'player's balance' with an integer (menu.sk, line 71: if player's balance is more than 6499:')

[12:45:33 ERROR]: 'else' has to be placed just after an 'if' or 'else if' section (menu.sk, line 82: else:')

[12:45:33 ERROR]: Can't compare 'player's balance' with an integer (menu.sk, line 86: if player's balance is more than 12999:')

[12:45:33 ERROR]: 'else' has to be placed just after an 'if' or 'else if' section (menu.sk, line 97: else:')

[12:45:33 INFO]: Loaded 1 script with a total of 1 trigger and 3 commands in 0.22 seconds

[12:45:33 INFO]: [skript] Encountered 4 errors while reloading the config and all scripts!

 

La m^me chose

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