Ogólnie mam skrypt, który losuje mi losowego gracza, przypisuje go do zmiennej i wysyła zmienną do funkcji. Tutaj macie te dwie rzeczy:
set {_starting_potato} to random player out of all players in world "%loop-world%"
run potato(%{_starting_potato}%, %loop-world%)
function potato(potato: player, world: world):
set health of all players in world {_world} to 20
set hunger of all players in world {_world} to 20
clear inventories of all players in world {_world}
remove glowing from all players in world {_world}
give a potato with name "&rHot Potato" to {_potato}
send "&6&lHot Potato &7was given to &c%{_potato}%" to all players in world {_world}
no i dostaje błąd Functions cannot be used here (or there is a problem with your arguments). Może wy ogarniacie co tu nie działa, bo ja to ślepy jestem
Przechylonym tekstem są nowe rzeczy (krok do przodu i 5 do tyłu normalnie)
Edytowane przez wikt0r3k Krok do przodu i 5 w tył :sob:
Pytanie
wikt0r3k 1
Ogólnie mam skrypt, który losuje mi losowego gracza, przypisuje go do zmiennej i wysyła zmienną do funkcji. Tutaj macie te dwie rzeczy:
set {_starting_potato} to random player out of all players in world "%loop-world%" run potato(%{_starting_potato}%, %loop-world%)function potato(potato: player, world: world): set health of all players in world {_world} to 20 set hunger of all players in world {_world} to 20 clear inventories of all players in world {_world} remove glowing from all players in world {_world} give a potato with name "&rHot Potato" to {_potato} send "&6&lHot Potato &7was given to &c%{_potato}%" to all players in world {_world}no i dostaje błąd Functions cannot be used here (or there is a problem with your arguments). Może wy ogarniacie co tu nie działa, bo ja to ślepy jestem
Edytowane przez wikt0r3kPrzechylonym tekstem są nowe rzeczy (krok do przodu i 5 do tyłu normalnie)
Krok do przodu i 5 w tył :sob:
Odnośnik do komentarza
https://skript.pl/temat/58823-potrzebna-pomoc/Udostępnij na innych stronach
4 odpowiedzi na to pytanie
Rekomendowane odpowiedzi