Kiedyś mi Shooterowy napisał skrypt na konie ale od tamtej pory wywala błędy że zmienna czasowa nie może zostać zapamiętana po wyłączeniu serwera. Ktoś wie jak ogarnąć by nie było tego błędu ?
[Server thread/WARN]: [Skript] an inventory holder cannot be saved, i.e. the contents of the variable {kon::%the player%} will be lost when the server stops. (kon.sk, line 15: set {kon::%player%} to spawned horse')
kod:
on rightclick:
if name of player's tool is "&5Pieczęć Konia Bojowego":
if difference between {kon::%player%::used} and now is smaller than 30 second:
send "&cKonia mozesz przywolac co 30 sekundy."
stop
if {kon::%player%} is set:
kill {kon::%player%}
clear {kon::%player%}
send "&6Przywoływanie..."
spawn 1 horse at player's location
equip spawned horse with a saddle
tame spawned horse to player
set name of last spawned entity to "Bojowiec %player%"
equip the last spawned entity with iron horse armor
set {kon::%player%} to spawned horse
set spawned horse's passenger to player
set {kon::%player%::used} to now
stop
tylko na szybki fix liczę czy coś
//Dzisiaj ci daruję warna bo nie był cały post z pogrubieniem ~Derpy
Pytanie
Nieaktywny
Kiedyś mi Shooterowy napisał skrypt na konie ale od tamtej pory wywala błędy że zmienna czasowa nie może zostać zapamiętana po wyłączeniu serwera. Ktoś wie jak ogarnąć by nie było tego błędu ?
[Server thread/WARN]: [Skript] an inventory holder cannot be saved, i.e. the contents of the variable {kon::%the player%} will be lost when the server stops. (kon.sk, line 15: set {kon::%player%} to spawned horse')
kod:
on rightclick: if name of player's tool is "&5Pieczęć Konia Bojowego": if difference between {kon::%player%::used} and now is smaller than 30 second: send "&cKonia mozesz przywolac co 30 sekundy." stop if {kon::%player%} is set: kill {kon::%player%} clear {kon::%player%} send "&6Przywoływanie..." spawn 1 horse at player's location equip spawned horse with a saddle tame spawned horse to player set name of last spawned entity to "Bojowiec %player%" equip the last spawned entity with iron horse armor set {kon::%player%} to spawned horse set spawned horse's passenger to player set {kon::%player%::used} to now stoptylko na szybki fix liczę czy coś
//Dzisiaj ci daruję warna bo nie był cały post z pogrubieniem ~Derpy
Edytowane przez Nieaktywny~ Wstawiam w kod - Oedeopol
Odnośnik do komentarza
https://skript.pl/temat/12137-koniki-zmienna-chwilowa/Udostępnij na innych stronach
2 odpowiedzi na to pytanie
Rekomendowane odpowiedzi