Skocz do zawartości
  • 0

Błąd w skrypcie.


Pytanie

Problem w skrócie:

Kod taki:

Spoiler

        chance of 20%:
            set %{_b}% to random integer from 1 to 16
            drop {_b} of ender pearl
            loop all players:
                if {powiadomienia::%loop-player%} is true:
                    send "&8- &c%{_b}%&7x&cPerel"
        chance of 20%:
            set %{_b}% to random integer from 1 to 50
            drop {_b} of TNT
            loop all players:
                if {powiadomienia::%loop-player%} is true:
                    send "&8- &c%{_b}%&7x&cTnt"
        chance of 20%:
            set %{_b}% to random integer from 1 to 50
            drop {_b} of gold block
            loop all players:
                if {powiadomienia::%loop-player%} is true:
                    send "&8- &c%{_b}%&7x&cBlokow zlota"
        chance of 20%:
            set %{_b}% to random integer from 1 to 50
            drop {_b} of diamond block
            loop all players:
                if {powiadomienia::%loop-player%} is true:
                    send "&8- &c%{_b}%&7x&cBlokow diamentow"

Błąd taki:

Spoiler

'%{_b}%' is not an entity type (PremiumCase.sk, line 154: set %{_b}% to random integer from 1 to 50') 

'%{_b}%' is not an entity type (PremiumCase.sk, line 180: set %{_b}% to random integer from 1 to 16')

'%{_b}%' is not an entity type (PremiumCase.sk, line 186: set %{_b}% to random integer from 1 to 50')

 '%{_b}%' is not an entity type (PremiumCase.sk, line 192: set %{_b}% to random integer from 1 to 50')

Dlaczego nie daje losowej ilości danego przedmiotu dla gracza ? Jak to naprawić ? Z góry dziękuję za pomoc.

Edytowane przez Black004
Odnośnik do komentarza
https://skript.pl/temat/30951-b%C5%82%C4%85d-w-skrypcie/
Udostępnij na innych stronach

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