Gość dudimsp2 Opublikowano 18 marca 2020 Udostępnij Opublikowano 18 marca 2020 (edytowane) Czemu nie da się zrobić give player-arg %arg 4% named "%arg 5%" Edytowane 21 marca 2020 przez dudimsp2 Wstawiam w code Notatka dodana przez HeezQ Odnośnik do komentarza https://skript.pl/temat/37569-b%C5%82%C4%85d-argument/ Udostępnij na innych stronach Więcej opcji udostępniania...
0 PanMaruda 624 Opublikowano 18 marca 2020 Udostępnij Opublikowano 18 marca 2020 9 minut temu, dudimsp2 napisał: Czemu nie da się zrobić give player-arg %arg 4% named "%arg 5%" Bo znając życie typy argumentów nie odpowiadają wymaganym typom przy tym efekcie + używasz procentów w składni, a służą one tylko i wyłącznie do wstawiania zmiennych w TEKST. Odnośnik do komentarza https://skript.pl/temat/37569-b%C5%82%C4%85d-argument/#findComment-238723 Udostępnij na innych stronach Więcej opcji udostępniania...
0 Gość dudimsp2 Opublikowano 18 marca 2020 Udostępnij Opublikowano 18 marca 2020 function openStatistics(gracz: player, zmlo: text, name: text): set {_zm::*} to yaml list "%{_zmlo}%.gui-id" from file "plugins/srSerwer/skript/jedzenie.yml" set {_x} to 0 open chest with 5 rows named "» %{_name}%" to {_gracz} wait 2 tick if "%inventory name of current inventory of {_gracz}%" contains "»": loop {_zm::*}: set {_name} to yaml value "%{_zmlo}%.id.%loop-value%.name" from file "plugins/srSerwer/skript/jedzenie.yml" set {_id} to yaml value "%{_zmlo}%.id.%loop-value%.id" from file "plugins/srSerwer/skript/jedzenie.yml" set {_money} to yaml value "%{_zmlo}%.id.%loop-value%.money" from file "plugins/srSerwer/skript/jedzenie.yml" if {_zmlo} is "candy-bars": format slot {_x} of {_gracz} with 1 of {_id} named "&7» %{_name}%" with lore "&7» &aCena:&7 %{_money}%$" to run "useStatistics %{_gracz}% strength %{_money}% %{_name}% %{_id}%" add 1 to {_x} command /useStatistics [<player>] [<text>] [<number>] [<text>] [<text>]: executable by: console trigger: if arg 2 is "strength": if player-arg's money is greater or equal to arg 3: if player-arg can hold 1 sponge: remove arg 3 from player-arg's balance give 1 of "%arg 5%" named "%arg 4%" to player-arg sendMessage(player-arg, "buy-item") else: sendMessage(player-arg, "no-space") stop else: sendMessage(player-arg, "no-money") stop yml: candy-bars: gui-id: - 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 - 10 - 11 id: 1: name: "§dJabłko" id: "apple" money: 10 2: name: "§dBurak" id: "beedtroot" money: 10 3: name: "§dChleb" id: "bread" money: 10 4: name: "§dCiasto" id: "Cake" money: 10 5: name: "§dMarchewka" id: "carrot" money: 10 6: name: "§dPieczony Kurczak" id: "chicken" money: 10 7: name: "§dPieczona Swinia" id: "porkchop" money: 10 8: name: "§dCiastko" id: "Cookie" money: 10 9: name: "§dMelon" id: "Melon" money: 10 10: name: "§Ziemniak" id: "potato" money: 10 11: name: "§dBefsztyk" id: "Steak" money: 10 Odnośnik do komentarza https://skript.pl/temat/37569-b%C5%82%C4%85d-argument/#findComment-238724 Udostępnij na innych stronach Więcej opcji udostępniania...
0 xAxee 1968 Opublikowano 18 marca 2020 Udostępnij Opublikowano 18 marca 2020 give 1 of (arg 5 parsed as item) named "%arg 4%" to player-arg Misio12320 1 Odnośnik do komentarza https://skript.pl/temat/37569-b%C5%82%C4%85d-argument/#findComment-238732 Udostępnij na innych stronach Więcej opcji udostępniania...
0 HeezQ 231 Opublikowano 21 marca 2020 Udostępnij Opublikowano 21 marca 2020 Problem został rozwiązany. Odnośnik do komentarza https://skript.pl/temat/37569-b%C5%82%C4%85d-argument/#findComment-239030 Udostępnij na innych stronach Więcej opcji udostępniania...
Pytanie
Gość dudimsp2
Czemu nie da się zrobić
give player-arg %arg 4% named "%arg 5%"
Edytowane przez dudimsp2Wstawiam w code
Notatka dodana przez HeezQ
Odnośnik do komentarza
https://skript.pl/temat/37569-b%C5%82%C4%85d-argument/Udostępnij na innych stronach
4 odpowiedzi na to pytanie
Rekomendowane odpowiedzi