Skocz do zawartości
  • 0

problem z else (have to be placed just after an "if" or "else if")


Pytanie

Witam, wystąpił w moim skrypcie błąd, taki jaki jest napisany w tytule.

Błąd: http://scr.hu/21nv/tomiu

KOD:

command /kodowanievipa [<text&gt]:    trigger:        if player has permission "kodowanie.vip":            if arg is set:                set {1} to 1 or 2 or 3 or 4 or 5                set {2} to 1 or 2 or 3 or 4 or 5                set {czas} to arg                set {kod} to "%{1}%%{2}%"                broadcast "&c%player% zrobil event! Kod to: {kod}!"                send "&cTwoj kod to: {kod}."                stop        else:            send "&cNie masz permisji."            stop            else:                send "&cUstal argument!"                stop
Edytowane przez Xawers105
Odnośnik do komentarza
https://skript.pl/temat/5919-problem-z-else-have-to-be-placed-just-after-an-if-or-else-if/
Udostępnij na innych stronach

2 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

Prosze to naprawiony kod:

 

command /kodowanievipa [<text&gt]:    trigger:        if player has permission "kodowanie.vip":            if arg is set:                set {1} to 1 or 2 or 3 or 4 or 5                set {2} to 1 or 2 or 3 or 4 or 5                set {czas} to arg                set {kod} to "%{1}%%{2}%"                broadcast "&c%player% zrobil event! Kod to: {kod}!"                send "&cTwoj kod to: {kod}."                stop            else:                send "&cUstal argument!"                stop        else:            send "&cNie masz permisji."            stop
Odnośnik do komentarza
https://skript.pl/temat/5919-problem-z-else-have-to-be-placed-just-after-an-if-or-else-if/#findComment-49077
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...