Skocz do zawartości
  • 0

Problem ze sprawdzaniem zmiennej


Pytanie

Witam, mam skrypt na respienie konia poprzez siodło, i jego upgradowanie:

on rightclick:	if player's tool is saddle named "&6&lSiodlo":		if {zbroja.%player%} is 0:			remove saddle named "&6&lSiodlo" from player's inventory			spawn a horse at the player			spawn 100 of particle magic crit:1 offset by 0, 1, 0 at player			spawn 100 of particle crit:1 offset by 0, 1, 0 at player			spawn 100 of particle spell:1 offset by 0, 1, 0 at player			equip last spawned entity with saddle			send "&7Zrespiles &6Konia&7!"			set display name of last spawned entity to "&7Kon gracza: &6%name of player%"		if {zbroja.%player%} is 1:			remove saddle named "&6&lSiodlo" from player's inventory			spawn a horse at the player			spawn 100 of particle magic crit:1 offset by 0, 1, 0 at player			spawn 100 of particle crit:1 offset by 0, 1, 0 at player			spawn 100 of particle spell:1 offset by 0, 1, 0 at player			equip last spawned entity with saddle			equip last spawned entity with gold horse armour			send "&7Zrespiles &6Konia&7!"			set display name of last spawned entity to "&7Kon gracza: &6%name of player%"

Próbowałem robić to jeszcze z else if, ale nie działało. Proszę o pomoc. Wyskakuje error z "if {zbroja.%player%} is 1" is not entity type

//Dodaję kodowanie. ~ :norbi:

Odnośnik do komentarza
https://skript.pl/temat/6040-problem-ze-sprawdzaniem-zmiennej/
Udostępnij na innych stronach

9 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

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ę...