function item(item: string, price: number, sell: number, click: string, player: player):
if {_click} is "left mouse button":
if {_player}'s balance is greater than {_price}:
remove "%{_price}%" parsed as a number from the {_player}'s balance
give {_player} {_item} parsed as an item
else:
message "zyskaj kase" to {_player}
Pytanie
KwiatekMiki 1
Próbowałem takie coś zrobić ale mam problem:
próbowałem też to tak obejść ale nie zadziałało
Kod:
function item(item: string, price: number, sell: number, click: string, player: player): if {_click} is "left mouse button": if {_player}'s balance is greater than {_price}: remove "%{_price}%" parsed as a number from the {_player}'s balance give {_player} {_item} parsed as an item else: message "zyskaj kase" to {_player}
Edytowane przez KwiatekMikinaprawienie tytułu
Odnośnik do komentarza
https://skript.pl/temat/57571-jak-to-naprawi%C4%87-variables-cannot-be-used-here/Udostępnij na innych stronach
3 odpowiedzi na to pytanie
Rekomendowane odpowiedzi