szczerze to nie mam pojęcia czy to co on zrobił zadziała, ale do replace() będzie ci potrzebny skript-reflect, a do ostatniej linijki musisz dopisać na końcu 'from inventory of player'
Zadziałało pomogło dodanie skript-reflect oraz dopisanie 'from inventory of player' na końcu
Jednakże skrypt ładuje się poprawnie, lecz wyskakują pewne komunikaty, których niezbyt (jeszcze, mam nadzieję) rozumiem i nie wiem czy zostawić to tak, czy jednak trzeba by coś poprawić w tym kodzie
[11:41:30 WARN]: uncoloured the name of the tool of the player is already a text, so you should not put it in one (e.g. uncoloured the name of the tool of the player instead of "%uncoloured the name of the tool of the player%")(gmcbanknot.sk, line 19:set{_kwota} to "%uncoloured name of player's tool%".replace("Banknot","").replace("(","").replace(")","").replace("$","")')[11:41:30 WARN]: the name of the tool of the player is already a text, so you should not put it in one (e.g. the name of the tool of the player instead of "%the name of the tool of the player%")(gmcbanknot.sk, line 21: remove 1 paper named "%name of player's tool%" with lore "%lore of player's tool%" from inventory of player')
Pytanie
ProfWiT 0
Zadziałało
pomogło dodanie skript-reflect oraz dopisanie 'from inventory of player' na końcu
Jednakże skrypt ładuje się poprawnie, lecz wyskakują pewne komunikaty, których niezbyt (jeszcze, mam nadzieję) rozumiem
i nie wiem czy zostawić to tak, czy jednak trzeba by coś poprawić w tym kodzie
Wydzielam do nowego tematu.
Odnośnik do komentarza
https://skript.pl/temat/43373-b%C5%82%C4%85d-w-skrypcie/Udostępnij na innych stronach
9 odpowiedzi na to pytanie
Rekomendowane odpowiedzi