options:
nazwa_itemu: "&aBanknot"
item: paper
lore1: "&eWartosc&r&7:&r &6$%arg%&r"
lore2: "&c"
lore3: "&7Kliknij PPM, aby wpłacić"
command /withdraw <number>:
trigger:
if player's money < arg:
send "&cNie masz tyle pieniedzy!"
stop
else:
remove arg from player's money
give {@item} named {@nazwa_itemu} with lore {@lore1} and {@lore2} and {@lore3} to player
send "&eWyplaciles&r &a%arg%&r &6pieniedzy z konta&r!"
on right click with {@item}:
if name of player's tool is {@nazwa_itemu}:
set {_!::*} to uncolored line 1 of lore of player's tool split at "$"
set {_money} to {_!::2} parsed as number
else:
remove 1 {@item} named {@nazwa_itemu} with lore {@lore1} and {@lore2} and {@lore3} from player
add {_money} to player's money
send "&eWplaciles&r &a%{_money}%&r &ena konto!"
Błąd w 23 linijce, nie wiem czemu nie działa, ktoś pomoże?
Pytanie
hbrt 41
Oto kod:
options: nazwa_itemu: "&aBanknot" item: paper lore1: "&eWartosc&r&7:&r &6$%arg%&r" lore2: "&c" lore3: "&7Kliknij PPM, aby wpłacić" command /withdraw <number>: trigger: if player's money < arg: send "&cNie masz tyle pieniedzy!" stop else: remove arg from player's money give {@item} named {@nazwa_itemu} with lore {@lore1} and {@lore2} and {@lore3} to player send "&eWyplaciles&r &a%arg%&r &6pieniedzy z konta&r!" on right click with {@item}: if name of player's tool is {@nazwa_itemu}: set {_!::*} to uncolored line 1 of lore of player's tool split at "$" set {_money} to {_!::2} parsed as number else: remove 1 {@item} named {@nazwa_itemu} with lore {@lore1} and {@lore2} and {@lore3} from player add {_money} to player's money send "&eWplaciles&r &a%{_money}%&r &ena konto!"Błąd w 23 linijce, nie wiem czemu nie działa, ktoś pomoże?
Zmieniam tytuł na poprawny.
Notatka dodana przez Glicz
Odnośnik do komentarza
https://skript.pl/temat/49156-b%C5%82%C4%85d-w-skrypcie/Udostępnij na innych stronach
13 odpowiedzi na to pytanie
Rekomendowane odpowiedzi
Dołącz do dyskusji
Możesz dodać zawartość już teraz a zarejestrować się później. Jeśli posiadasz już konto, zaloguj się aby dodać zawartość za jego pomocą.