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"
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.
Question
MartinBJdu14
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 :
pouvez vous m'aider ?
Merci par avence
Cordialement, MartinBJdu14
17 réponses à cette question
Messages recommandés