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.
Pytanie
Black004 0
Problem w skrócie:
Kod taki:
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:
'%{_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 Black004Odnoś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