Aller au contenu
  • 0

Des grades


Question

Posté(e)

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.

Que faut-il changer?

13 réponses à cette question

Messages recommandés

  • 0
Posté(e)
C quoi l'erreur ?

[17:44:34] [server thread/ERROR]: [skript] 'else' has to be placed just after an 'if' or 'else if' section (Grade.sk, line 13: else:')

  • 0
Posté(e)
tu ne peux pas mettre deux "else" il faut que tu metre un "else if arg 1 is not set" ou autre (selon les besoin de ton skript)

Je n'arrive pas a bien le mettre.

Ca me met pleins d'erreurs.

Peux-tu me le mettre correctement stp?

  • 0
Posté(e)

Tien j'ai modifier le début de ton code :

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 isn't set
           message "{@prefix2} &4Please specify the name of the rank."
       else:
           #Suite de ton code

  • 0
Posté(e)
Tien j'ai modifier le début de ton code :

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 isn't set
           message "{@prefix2} &4Please specify the name of the rank."
       else:
           #Suite de ton code

 

ca me met ca:

 

[16:43:38] [server thread/ERROR]: can't understand this condition: 'arg 2 "is Moderator-Chat"' (Grade.sk, line 42: else if arg 2 "is Moderator-Chat":')

[16:43:38] [server thread/ERROR]: Can't understand this condition/effect: send &3[ProtectoServ] "&4This player already has the rank of &l&6Helper&r&4." (Grade.sk, line 58: send {@prefix2} "&4This player already has the rank of &l&6Helper&r&4."')

[16:43:38] [server thread/ERROR]: Can't understand this condition/effect: set grade.%uuid of arg 1%} to "&1&6Helper" (Grade.sk, line 60: set grade.%uuid of arg 1%} to "&1&6Helper"')

[16:43:38] [server thread/ERROR]: Invalid use of quotes ("). If you want to use quotes in "quoted text", double them: "". (Grade.sk, line 74: set

  • 0
Posté(e)
Salut,

il nous faut tous le code.

Merci

Le voici:

 

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

 

Et celui du début est tout en haut.

  • 0
Posté(e)
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."
                   else:
                       set {grade.%uuid of arg 1%} to "&l&4Administrator"
                       send "{@prefix2} &2%arg-1% &4became &l&4Administrator&r&4."
                       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."
                   else:
                       set {grade.%uuid of arg 1%} to "&l&2Chief Moderator"
                       send "{@prefix2} &2%arg-1% &4became &l&2Chief Moderatortor&r&4."
                       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."
                   else:
                       set {grade.%uuid of arg 1%} to "&l&1Chief Builder"
                       send "{@prefix2} &2%arg-1% &4became &l&1Chief Builder&r&4."
                       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."
                   else:
                       set {grade.%uuid of arg 1%} to "&l&&Moderator"
                       send "{@prefix2} &2%arg-1% &4became &l&aModerator&r&4."
                       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."
                   else:
                       set {grade.%uuid of arg 1%} to "&l&8Moderator-Chat"
                       send "{@prefix2} &2%arg-1% &4became &l&8Moderator-Chat&r&4."
                       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."
                   else:
                       set {grade.%uuid of arg 1%} to "&l&9Builder"
                       send "{@prefix2} &2%arg-1% &4became &l&9Builder&r&4."
                       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."
                       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."
                   else:
                       set {grade.%uuid of arg 1%} to "&l&4You&l&ftuber"
                       send "{@prefix2} &2%arg-1% &4became &l&4You&l&ftuber&r&4."
                       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."
                       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."
                   else:
                       set {grade.%uuid of arg 1%} to "&5Ultra Vip"
                       send "{@prefix2} &2%arg-1% &4became &5Ultra Vip&4."
                       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."
                   else:
                       set {grade.%uuid of arg 1%} to "&eVip"
                       send "{@prefix2} &2%arg-1% &4became &eVip&4."
                       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."
                   else:
                       set {grade.%uuid of arg 1%} to "&1Croziumien"
                       send "{@prefix2} &2%arg-1% &4became &1Croziumien&4."
                       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."
                   else:
                       set {grade.%uuid of arg 1%} to "&7Player"
                       send "{@prefix2} &2%arg-1% &4became &7Player&4."
                       send "{@prefix1} &4You've become &7Player&4!" to arg 1
               else:
                   send "{@prefix2} &4This rank does not exist!"

  • 0
Posté(e)
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."
                   else:
                       set {grade.%uuid of arg 1%} to "&l&4Administrator"
                       send "{@prefix2} &2%arg-1% &4became &l&4Administrator&r&4."
                       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."
                   else:
                       set {grade.%uuid of arg 1%} to "&l&2Chief Moderator"
                       send "{@prefix2} &2%arg-1% &4became &l&2Chief Moderatortor&r&4."
                       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."
                   else:
                       set {grade.%uuid of arg 1%} to "&l&1Chief Builder"
                       send "{@prefix2} &2%arg-1% &4became &l&1Chief Builder&r&4."
                       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."
                   else:
                       set {grade.%uuid of arg 1%} to "&l&&Moderator"
                       send "{@prefix2} &2%arg-1% &4became &l&aModerator&r&4."
                       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."
                   else:
                       set {grade.%uuid of arg 1%} to "&l&8Moderator-Chat"
                       send "{@prefix2} &2%arg-1% &4became &l&8Moderator-Chat&r&4."
                       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."
                   else:
                       set {grade.%uuid of arg 1%} to "&l&9Builder"
                       send "{@prefix2} &2%arg-1% &4became &l&9Builder&r&4."
                       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."
                       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."
                   else:
                       set {grade.%uuid of arg 1%} to "&l&4You&l&ftuber"
                       send "{@prefix2} &2%arg-1% &4became &l&4You&l&ftuber&r&4."
                       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."
                       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."
                   else:
                       set {grade.%uuid of arg 1%} to "&5Ultra Vip"
                       send "{@prefix2} &2%arg-1% &4became &5Ultra Vip&4."
                       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."
                   else:
                       set {grade.%uuid of arg 1%} to "&eVip"
                       send "{@prefix2} &2%arg-1% &4became &eVip&4."
                       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."
                   else:
                       set {grade.%uuid of arg 1%} to "&1Croziumien"
                       send "{@prefix2} &2%arg-1% &4became &1Croziumien&4."
                       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."
                   else:
                       set {grade.%uuid of arg 1%} to "&7Player"
                       send "{@prefix2} &2%arg-1% &4became &7Player&4."
                       send "{@prefix1} &4You've become &7Player&4!" to arg 1
               else:
                   send "{@prefix2} &4This rank does not exist!"

 

Je vais essayer

Ps: tu as changer quoi?

  • 0
Posté(e)
Je vais essayer

Ps: tu as changer quoi?

J'ai corrigé les erreurs, tu avais oublier un " et aussi un { et après c'est parce que tu avais mal placer un "

  • J'aime 1
  • 0
Posté(e)
J'ai corrigé les erreurs, tu avais oublier un " et aussi un { et après c'est parce que tu avais mal placer un "

Et toi tu avais oublier des " et les to player x) mais j'ai corriger^^

Sinon merci ca marche!

  • J'aime 1
×
×
  • 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.