Skocz do zawartości
  • 0

Bład 'else' has to be placed just after an 'if' or 'else if' section


wiktorpikachuyt

Pytanie

Kod 

command /kitvip:
    trigger:
        if player has permission "kit.vip":
        send "&cKit Vip zostal ci przydzielony!"
        give iron chestplate of protection 5 named "Kit Vip" to player
        give iron Pickaxe of Efficiency 3 named "Kilof Vip" to player
        give iron helmet of protection 5 named "Kit Vip" to player
        give iron leggings of protection 5 named "Kit Vip" to player
        give iron boots of protection 5 named "Kit Vip" to player
        give iron sword of sharpness 3 and fire aspect 1 named "Kit Vip" to player
        else:
        send "&cnie masz permisji! &7(kit.vip)"

 

Glicz

Wstawiam kod w code.

Notatka dodana przez Glicz

Odnośnik do komentarza
Udostępnij na innych stronach

3 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
9 minut temu, wiktorpikachuyt napisał:

Kod 

command /kitvip:
    trigger:
        if player has permission "kit.vip":
        send "&cKit Vip zostal ci przydzielony!"
        give iron chestplate of protection 5 named "Kit Vip" to player
        give iron Pickaxe of Efficiency 3 named "Kilof Vip" to player
        give iron helmet of protection 5 named "Kit Vip" to player
        give iron leggings of protection 5 named "Kit Vip" to player
        give iron boots of protection 5 named "Kit Vip" to player
        give iron sword of sharpness 3 and fire aspect 1 named "Kit Vip" to player
        else:
        send "&cnie masz permisji! &7(kit.vip)"

 

Skrypt jest źle wytabowany, masz tu poprawioną wersję
 

command /kitvip:
	trigger:
		if player has permission "kit.vip":
			send "&cKit Vip zostal ci przydzielony!"
			give iron chestplate of protection 5 named "Kit Vip" to player
			give iron Pickaxe of Efficiency 3 named "Kilof Vip" to player
			give iron helmet of protection 5 named "Kit Vip" to player
			give iron leggings of protection 5 named "Kit Vip" to player
			give iron boots of protection 5 named "Kit Vip" to player
			give iron sword of sharpness 3 and fire aspect 1 named "Kit Vip" to player
		else:
			send "&cnie masz permisji! &7(kit.vip)"

 

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
3 godziny temu, Glicz napisał:

Skrypt jest źle wytabowany, masz tu poprawioną wersję
 

command /kitvip:
	trigger:
		if player has permission "kit.vip":
			send "&cKit Vip zostal ci przydzielony!"
			give iron chestplate of protection 5 named "Kit Vip" to player
			give iron Pickaxe of Efficiency 3 named "Kilof Vip" to player
			give iron helmet of protection 5 named "Kit Vip" to player
			give iron leggings of protection 5 named "Kit Vip" to player
			give iron boots of protection 5 named "Kit Vip" to player
			give iron sword of sharpness 3 and fire aspect 1 named "Kit Vip" to player
		else:
			send "&cnie masz permisji! &7(kit.vip)"

 

DZK

Sprawa do zamknięcia

Notro

Łączę

Notatka dodana przez Notro

Odnośnik do komentarza
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ę...