Aller au contenu
  • 0

Problème avec "more than" et "equal" (timer)


Question

Posté(e)

Salut a tous,

j'ai un problème avec mon Skript et je ne sais pas d'ou vient le problème enfin je m’explique :

j'ai crée un Skript de timer mais il y a un problème avec more than et equal etc...

voici le code :

options:
   prefix: &c[&6&lTimer&b&lplay&r&c]&r
   under5up120: &4&lERREUR&r&c : le nombre de seconde du timer doit être égale a ou au dessus de 5 et en dessous de 120

command /timer [<text>] [<text>]:
   permission: timeplay.use
   permission message: &cvous n'avez pas la permission pour cette commande !
   trigger:
       if arg 1 is set:
           if arg 1 is "play":
               if arg 2 is set:
                   if arg 2 is more than or equal to 5:
                       if arg 2 is not more than 120:
                           set {_timer} to arg 2
                           add 1 from {_timer}
                           send "&atimer lançé a &c5&a secondes !" to player
                           make console execute command "playsound random.pop %player% ~0 ~0 ~0 101"
                           wait 15 ticks
                           loop arg 2 times:
                               remove 1 from {_timer}
                               if {_colorofarg1} is more than 6:
                                   set {_colorofarg1} to &a
                               if {_colorofarg1} is equal to 6:
                                   set {_colorofarg1} to &e
                               if {_colorofarg1} is equal to 5:
                                   set {_colorofarg1} to &e
                               if {_colorofarg1} is equal to 4:
                                   set {_colorofarg1} to &6
                               if {_colorofarg1} is equal to 3:
                                   set {_colorofarg1} to &6
                               if {_colorofarg1} is equal to 2:
                                   set {_colorofarg1} to &c
                               if {_colorofarg1} is equal to 1:
                                   set {_colorofarg1} to &4
                               broadcast "&5temps &6> {_colorofarg1}%arg 1%"
                               loop all players:
                                   make console execute command "playsound random.orb %loop-player% ~0 ~0 ~0 101"
                       if arg 2 is more than 120:
                           send {@prefix} {@under5up120}" to player
                   if arg 2 is not more than or equal to 5:
                       send {@prefix} {@under5up120}" to player
               if arg 2 is not set:
                   send "{@prefix} {@under5up120}" to player
           if arg 1 is "minimum" or "min":
               make console execute command "playsound random.pop %player% ~0 ~0 ~0 101"
               send "{@prefix} &7commande : &6/timer &c<&aplay&7|&amin&c> &c<&atime&c>&r" to player
               wait 1 tick
               send "{@prefix} &aminimum &7: &c5&7 , &4maximum &7: &c120" to player
               make console execute command "playsound random.orb %player% ~0 ~0 ~0 101"
       if arg 1 is not set:
           make console execute command "playsound random.pop %player% ~0 ~0 ~0 101"
           send "{@prefix} &7commande : &6/timer &c<&aplay&7|&amin&c> &c<&atime&c>&r" to player
           wait 1 tick
           send "{@prefix} &aminimum &7: &c5&7 , &4maximum &7: &c120" to player
           make console execute command "playsound random.orb %player% ~0 ~0 ~0 101"

et voici l'erreur :1469522274-error-newtimer.png

pouvez vous m'aider ?

Merci par avence

Cordialement, MartinBJdu14

17 réponses à cette question

Messages recommandés

  • 0
Posté(e)

oh oh je croix qu'il y a un problème avec ma version de Skript :/

 

teste 1 :

1469545340-error-newtimer.png

 

teste 2 :

1469545340-error-newtimer2.png

 

faut t'il un addon particulier pour pouvoir avoir sa ? si oui le quel ?

Merci d’avance !

pour ceux qui veulent mon Skript pour voir sa de plus près (je le met en fichiers disponible)

  • 0
Posté(e)
oh oh je croix qu'il y a un problème avec ma version de Skript :/

 

teste 1 :

1469545340-error-newtimer.png

 

teste 2 :

1469545340-error-newtimer2.png

 

faut t'il un addon particulier pour pouvoir avoir sa ? si oui le quel ?

Merci d’avance !

pour ceux qui veulent mon Skript pour voir sa de plus près (je le met en fichiers disponible)

C'est quoi la version de Skript que tu utilises ?

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