Bonjours, j'ai fait un skript de grade et il y a 1 erreur que je ne comprend pas (et il y en a qu'une)
options:
prefix1: &6[staff]
prefix2: &3[ProtectoServ]
command /setgrade <offline player> <text>:
permission: setgrade.sk
permission message: {@prefix2} &4You don't have permission to use this command!
trigger:
if arg 1 is not set:
message "{@prefix2} &4Please specify the name of the player."
else:
if arg 2 is not set:
message "{@prefix2} &4Please specify the name of the rank."
else:
if arg 1 is set:
if arg 2 is "Administrator":
if {grade.%uuid of arg 1%} is "&l&4Administrator":
send "{@prefix2} &4This player already has the rank of &l&4Administrator&r&4." to player
else:
set {grade.%uuid of arg 1%} to "&l&4Administrator"
send "{@prefix2} &2%arg-1% &4became &l&4Administrator&r&4." to player
send "{@prefix1} &4You've become &l&4Administrator&r&4!" to arg 1
else if arg 2 is "Chief Moderator":
if {grade.%uuid of arg 1%} is "&l&2Chief Moderator":
send "{@prefix2} &4This player already has the rank of &l&2Chief Moderator&r&4." to player
else:
set {grade.%uuid of arg 1%} to "&l&2Chief Moderator"
send "{@prefix2} &2%arg-1% &4became &l&2Chief Moderatortor&r&4." to player
send "{@prefix1} &4You've become &l&2Chief Moderator&r&4!" to arg 1
else if arg 2 is "Chief Builder":
if {grade.%uuid of arg 1%} is "&l&1Chief Builder":
send "{@prefix2} &4This player already has the rank of &l&1Chief Builder&r&4." to player
else:
set {grade.%uuid of arg 1%} to "&l&1Chief Builder"
send "{@prefix2} &2%arg-1% &4became &l&1Chief Builder&r&4." to player
send "{@prefix1} &4You've become &l&1Chief Builder&r&4!" to arg 1
else if arg 2 is "Moderator":
if {grade.%uuid of arg 1%} is "&l&aModerator":
send "{@prefix2} &4This player already has the rank of &l&aModerator&r&4." to player
else:
set {grade.%uuid of arg 1%} to "&l&&Moderator"
send "{@prefix2} &2%arg-1% &4became &l&aModerator&r&4." to player
send "{@prefix1} &4You've become &l&aModerator&r&4!" to arg 1
else if arg 2 "is Moderator-Chat":
if {grade.%uuid of arg 1%} is "&l&8Moderator-Chat":
send "{@prefix2} &4This player already has the rank of &l&8Moderator-Chat&r&4." to player
else:
set {grade.%uuid of arg 1%} to "&l&8Moderator-Chat"
send "{@prefix2} &2%arg-1% &4became &l&8Moderator-Chat&r&4." to player
send "{@prefix1} &4You've become &l&8Moderator-Chat&r&4!" to arg 1
else if arg 2 is "Builder":
if {grade.%uuid of arg 1%} is "&1&9Builder":
send "{@prefix2} &4This player already has the rank of &l&9Builder&r&4." to player
else:
set {grade.%uuid of arg 1%} to "&l&9Builder"
send "{@prefix2} &2%arg-1% &4became &l&9Builder&r&4." to player
send "{@prefix1} &4You've become &l&9Builder&r&4!" to arg 1
else if arg 2 is "Helper":
if {grade.%uuid of arg 1%} is "&l&6Helper":
send {@prefix2} "&4This player already has the rank of &l&6Helper&r&4."
else:
set grade.%uuid of arg 1%} to "&1&6Helper"
send "{@prefix2} &2%arg-1% &4became &l&6Helper&r&4." to player
send "{@prefix1} &4You've become &l&6Helper&r&4!" to arg 1
else if arg 2 is "Youtuber":
if {grade.%uuid of arg 1%} is "&l&4You&l&ftuber":
send "{@prefix2} &4This player already has the rank of &l&4You&l&ftuber&r&4." to player
else:
set {grade.%uuid of arg 1%} to "&l&4You&l&ftuber"
send "{@prefix2} &2%arg-1% &4became &l&4You&l&ftuber&r&4." to player
send "{@prefix1} &4You've become &l&4You&l&ftuber&r&4!" to arg 1
else if arg 2 is "Alpha":
if {grade.%uuid of arg 1%} is "&bAlpha":
send "{@prefix2} &4This player already has the rank of &bAlpha&4."
else:
set {grade.%uuid of arg 1%} to "&bAlpha3
send "{@prefix2} &2%arg-1% &4became &bAlpha&4." to player
send "{@prefix1} &2You've become &bAlpha&4!" to arg 1
else if arg 2 is "Ultra Vip":
if {grade.%uuid of arg 1%} is "&5Ultra Vip":
send "{@prefix2} &4This player already has the rank of &5Ultra Vip&4." to player
else:
set {grade.%uuid of arg 1%} to "&5Ultra Vip"
send "{@prefix2} &2%arg-1% &4became &5Ultra Vip&4." to player
send "{@prefix1} &4You've become &5Ultra Vip&4!" to arg 1
else if arg 2 is "Vip":
if {grade.%uuid of arg 1%} is "&eVip":
send "{@prefix2} &4This player already has the rank of &eVip&4." to player
else:
set {grade.%uuid of arg 1%} to "&eVip"
send "{@prefix2} &2%arg-1% &4became &eVip&4." to player
send "{@prefix1} &4You've become &eVip&4!" to arg 1
else if arg 2 is "Croziumien":
if {grade.%uuid of arg 1%} is "&1Croziumien":
send "{@prefix2} &4This player already has the rank of &1Croziumien&4." to player
else:
set {grade.%uuid of arg 1%} to "&1Croziumien"
send "{@prefix2} &2%arg-1% &4became &1Croziumien&4." to player
send "{@prefix1} &4You've become &1Croziumien&4!" to arg 1
else if arg 2 is "Player":
if {grade.%uuid of arg 1%} is "&7Player":
send "{@prefix2} &4This player already has the rank of &7Player&4." to player
else:
set {grade.%uuid of arg 1%} to "&7Player"
send "{@prefix2} &2%arg-1% &4became &7Player&4." to player
send "{@prefix1} &4You've become &7Player&4!" to arg 1
else:
send "{@prefix2} &4This rank does not exist!" to player
Il me dit qu'a la ligne 13 on peut placer que else apres un if ou else if.
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
Forzzen
Bonjours, j'ai fait un skript de grade et il y a 1 erreur que je ne comprend pas (et il y en a qu'une)
Il me dit qu'a la ligne 13 on peut placer que else apres un if ou else if.
Que faut-il changer?
13 réponses à cette question
Messages recommandés