command /çek [<number>]:
trigger:
if arg 1 isn't set:
message "&7Kullanmak için &c/çek <miktar>"
stop
if arg 1 is set:
if player's balance is bigger than arg-1:
message "&7%arg-1% miktarinda bir çek yazdiniz !"
remove arg-1 from player's balance
give 1 paper named "&8%arg-1% &8TL" with lore "&7Çek'i açmak için tiklayiniz !" to player
rightclick with paper:
if "%name of player's tool%" contains "&8TL":
set {_çek} to name of player's held item
set {_çek} to {_çek} parsed as number
message "&7%{_çek}% miktarinda bir para çeki kullandiniz !"
add "%{_çek}%" to player's account
remove 1 of player's tool from player's inventory
daha önce yapıldı biraz araştırsan :/ insan googleye yazar çek minecraft skript forum gamer di
ye
Kod:command /çek [<number>]: trigger: if arg 1 isn't set: message "&7Kullanmak için &c/çek <miktar>" stop if arg 1 is set: if player's balance is bigger than arg-1: message "&7%arg-1% miktarinda bir çek yazdiniz !" remove arg-1 from player's balance give 1 paper named "&8%arg-1% &8TL" with lore "&7Çek'i açmak için tiklayiniz !" to player rightclick with paper: if "%name of player's tool%" contains "&8TL": set {_çek} to name of player's held item set {_çek} to {_çek} parsed as number message "&7%{_çek}% miktarinda bir para çeki kullandiniz !" add "%{_çek}%" to player's account remove 1 of player's tool from player's inventory
[19:50:05 INFO]: [Skript] Reloading test2.sk...
[19:50:05 ERROR]: "%{_çek}%" can't be added to the money of the player because the former is neither a money nor a number (test2.sk, line 17: add "%{_çek}%" to player's account')
[19:50:05 INFO]: [Skript] Encountered 1 error while reloading test2.sk!
daha önce denedim böyle bi hata verdiKod:[19:50:05 INFO]: [Skript] Reloading test2.sk... [19:50:05 ERROR]: "%{_çek}%" can't be added to the money of the player because the former is neither a money nor a number (test2.sk, line 17: add "%{_çek}%" to player's account') [19:50:05 INFO]: [Skript] Encountered 1 error while reloading test2.sk!
daha önce denedim böyle bi hata verdi
command /çek [<number>]:
trigger:
if arg 1 isn't set:
message "&7Kullanmak için &c/çek <miktar>"
stop
if arg 1 is set:
if player's balance is bigger than arg-1:
message "&7%arg-1% miktarinda bir çek yazdiniz !"
remove arg-1 from player's balance
give 1 paper named "&8%arg-1% &8TL" with lore "&7Çek'i açmak için tiklayiniz !" to player
rightclick with paper:
if "%name of player's tool%" contains "&8TL":
set {_çek} to name of player's held item
set {_çek} to {_çek} parsed as number
message "&7%{_çek}% miktarinda bir para çeki kullandiniz !"
add {_çek} to player's account
remove 1 of player's tool from player's inventory
command /çek [<number>]:
trigger:
if arg 1 isn't set:
message "&7Kullanmak için &c/çek <miktar>"
stop
if arg 1 is set:
if player's balance is bigger than arg-1:
message "&7%arg-1% miktarinda bir çek yazdiniz !"
remove arg-1 from player's balance
give 1 paper named "&8%arg-1% &8TL" with lore "&7Çek'i açmak için tiklayiniz !" to player
rightclick with paper:
if "%name of player's tool%" contains "&8TL":
set {_çek} to name of player's held item
set {_çek} to {_çek} parsed as number
message "&7%{_çek}% miktarinda bir para çeki kullandiniz !"
execute player command "eco give %player% %{_çek}%"
remove 1 of player's tool from player's inventory
eğer olmassaKod:command /çek [<number>]: trigger: if arg 1 isn't set: message "&7Kullanmak için &c/çek <miktar>" stop if arg 1 is set: if player's balance is bigger than arg-1: message "&7%arg-1% miktarinda bir çek yazdiniz !" remove arg-1 from player's balance give 1 paper named "&8%arg-1% &8TL" with lore "&7Çek'i açmak için tiklayiniz !" to player rightclick with paper: if "%name of player's tool%" contains "&8TL": set {_çek} to name of player's held item set {_çek} to {_çek} parsed as number message "&7%{_çek}% miktarinda bir para çeki kullandiniz !" execute player command "eco give %player% %{_çek}%" remove 1 of player's tool from player's inventory
[20:27:46 ERROR]: '1 paper named "&8%arg-1% &8TL" with lore "&7Çek'i açmak için tiklayiniz !"' can't be added to a player because the former is neither an item type, an inventory nor an experience point (test.sk, line 10: give 1 paper named "&8%arg-1% &8TL" with lore "&7Çek'i açmak için tiklayiniz !" to player')
execute console de yapabilirim gerçi oto yetki veriyordu execute sanırım amaTabii oyuncunun zaten "eco" yetkisi var. Değil mi?
bunu bilmiyorum nasıl düzelticeğimiKod:[20:27:46 ERROR]: '1 paper named "&8%arg-1% &8TL" with lore "&7Çek'i açmak için tiklayiniz !"' can't be added to a player because the former is neither an item type, an inventory nor an experience point (test.sk, line 10: give 1 paper named "&8%arg-1% &8TL" with lore "&7Çek'i açmak için tiklayiniz !" to player')
command /çek [<number>]:
trigger:
if arg 1 isn't set:
message "&7Kullanmak için &c/çek <miktar>"
stop
if arg 1 is set:
if player's balance is bigger than arg-1:
message "&7%arg-1% miktarinda bir çek yazdiniz !"
remove arg-1 from player's balance
set slot 9 of player's inventory to paper named "&8%arg-1% &8TL" with lore "&7Çek'i açmak için tiklayiniz !"
rightclick with paper:
if "%name of player's tool%" contains "&8TL":
set {_çek} to name of player's held item
set {_çek} to {_çek} parsed as number
message "&7%{_çek}% miktarinda bir para çeki kullandiniz !"
execute player command "eco give %player% %{_çek}%"
remove 1 of player's tool from player's inventory
[20:50:41 INFO]: [Skript] Reloading cek.sk...
[20:50:41 WARN]: Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (cek.sk, line 12: if player's balance is bigger than arg-1:')
[20:50:41 ERROR]: a slot can't be set to 'paper named "&8%arg-1% &8TL" with lore "&7Çek'i açmak için tiklayiniz !"' because the latter is neither an item type nor an item stack (cek.sk, line 18: set slot 9 of player's inventory to paper named "&8%arg-1% &8TL" with lore "&7Çek'i açmak için tiklayiniz !"')
[20:50:41 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%") (cek.sk, line 24: if "%name of player's tool%" contains "&8TL":')
[20:50:41 ERROR]: A command with the name /çek is already defined in test.sk
[20:50:41 INFO]: [Skript] Encountered 2 errors while reloading cek.sk!
Link?