Witam, jak okreslic spacje pomiedzy argumentami?
Mam kod na wyplacanie tokenow, i chcialbym aby pomiedzy niego dalo sie wpisac spacje. Przyklad: 1 000 000. Wychwytuje jedynie 1 argument, reszty juz nie.
command /wyplactokeny [<text>] [<text>] [<text>] [<text>]:
trigger:
if arg 1 is set:
set {_x} to arg 1 parsed as integer
set {_y} to arg 2 parsed as integer
set {_z} to arg 3 parsed as integer
set {_d} to arg 4 parsed as integer
if {_x} is a integer:
remove {_x} from {money::%player%}
replace all " " with "" in {_x}
replace all " " with "" in {_y}
replace all " " with "" in {_z
replace all " " with "" in {_d}
Pytanie
giteczek12PL 1
Witam, jak okreslic spacje pomiedzy argumentami?
Mam kod na wyplacanie tokenow, i chcialbym aby pomiedzy niego dalo sie wpisac spacje. Przyklad: 1 000 000. Wychwytuje jedynie 1 argument, reszty juz nie.
command /wyplactokeny [<text>] [<text>] [<text>] [<text>]: trigger: if arg 1 is set: set {_x} to arg 1 parsed as integer set {_y} to arg 2 parsed as integer set {_z} to arg 3 parsed as integer set {_d} to arg 4 parsed as integer if {_x} is a integer: remove {_x} from {money::%player%} replace all " " with "" in {_x} replace all " " with "" in {_y} replace all " " with "" in {_z replace all " " with "" in {_d}
Edytowane przez xNightPower_Umieszczam kod w code.
Odnośnik do komentarza
https://skript.pl/temat/44352-pytanie/Udostępnij na innych stronach
7 odpowiedzi na to pytanie
Rekomendowane odpowiedzi