on load:
set {maxAmount} to 3
on eat of enchanted golden apple:
if amount of enchanted golden apple in player's inventory is greater than 3:
set {_} to number of all enchanted golden apples in player's inventory
if {_} is more than {maxAmount}:
remove ({_}-{maxAmount}) of enchanted golden apple from the player's inventory
add ({_}-{maxAmount}) of enchanted golden apple to player's enderchest
send "&cMaksymalnie mozesz miec przy sobie %{maxAmount}% koxów! %({_}-{maxAmount})% zostalo przeniesionych do twojego enderchestu!" to player
else amount of enchanted golden apple in player's intentory is smaller than 3:
stop
Gdy go przeładowuje wyskakuje mi błąd związany z parametrem else, próbowałem już wielu sposobów, ale nic nie pomaga
Pytanie
Jenqy 0
Oto skrypt:
on load:
set {maxAmount} to 3
on eat of enchanted golden apple:
if amount of enchanted golden apple in player's inventory is greater than 3:
set {_} to number of all enchanted golden apples in player's inventory
if {_} is more than {maxAmount}:
remove ({_}-{maxAmount}) of enchanted golden apple from the player's inventory
add ({_}-{maxAmount}) of enchanted golden apple to player's enderchest
send "&cMaksymalnie mozesz miec przy sobie %{maxAmount}% koxów! %({_}-{maxAmount})% zostalo przeniesionych do twojego enderchestu!" to player
else amount of enchanted golden apple in player's intentory is smaller than 3:
stop
Gdy go przeładowuje wyskakuje mi błąd związany z parametrem else, próbowałem już wielu sposobów, ale nic nie pomaga
Ktoś coś?
Odnośnik do komentarza
https://skript.pl/temat/16899-b%C5%82%C4%85d-else/Udostępnij na innych stronach
1 odpowiedź na to pytanie
Rekomendowane odpowiedzi