Hata nerde

McWeb

Kızıltaş Madencisi
En iyi cevaplar
0
1-2 gün önce bir skript yazdım fakat sebebini anlamadığım bir nedenden dolayı hata veriyor.
HTML:
command /kale [<text>] [<text>] [<text>]:
 permission: admin
 trigger:
  if arg 1 is "davet":
   if arg 2 is player:
    if {oyunaktif} is false:
     set {cagiran.%arg 2%} to player
     set {cagirilan.%player%} to arg 2
     set {cagirdi.%arg 2%} to true
     send "&6&l[PVP] &7%{cagiran.%player%}% adlı oyuncu sizi PvP'ye çağırdı" to {cagirilan.%player%}
     send " &a/kale kabul &0, &4/kale red " to {cagirilan.%player%}
     send "&730 Saniye içinde kabul etmezseniz otomatik reddedilecektir!" to {cagirilan.%player%}
     loop 30 times:
      wait 1 second
     if {pvp.istek.%arg 2%} is true:
      set {oyunaktif} to true
      send "&6&l[PVP] &7PvP arenasına ışınlanıyorsunuz!"
      set the player's health to 20
      set the arg 2's health to 20
      set the player's food level to 20
      set the arg 2's food level to 20
      set the player's gamemode to survival
      set the arg 2's gamemode to survival
      set the player's walk speed to 0
      set the arg 2's walk speed to 0
      set {pvpgame.%arg 2%} to true
      set {pvpgame.%player%} to true
      set {jump.%arg 2%} to true
      set {jump.%player%} to true
      teleport arg 2 to {pvp1}
      teleport player to {pvp2}
      set {_kordinatpvp_3} to location 0 meters below 1 meters east player  # Altı (Doğu)
      set {_kordinatpvp_4} to location 0 meters below 1 meters west player # Altı (Batı)
      set {_kordinatpvp_5} to location 0 meters below 1 meters north player # Altı (Kuzey)
      set {_kordinatpvp_6} to location 0 meters below 1 meters south player # Altı (Güney)
      set {_kordinatpvp_7} to location 0 meters below 1 meters east arg 2  # Altı (Doğu)
      set {_kordinatpvp_8} to location 0 meters below 1 meters west arg 2 # Altı (Batı)
      set {_kordinatpvp_9} to location 0 meters below 1 meters north arg 2 # Altı (Kuzey)
      set {_kordinatpvp_10} to location 0 meters below 1 meters south arg 2 # Altı (Güney)
      set block at {_kordinatpvp_3} to glass
      set block at {_kordinatpvp_4} to glass
      set block at {_kordinatpvp_5} to glass
      set block at {_kordinatpvp_6} to glass
      set block at {_kordinatpvp_7} to glass
      set block at {_kordinatpvp_8} to glass
      set block at {_kordinatpvp_9} to glass
      set block at {_kordinatpvp_10} to glass
      set {_kordinatpvp_1} to location -2 meters below player
      set block at {_kordinatpvp_1} to glass
      set {_kordinatpvp_2} to location -2 meters below arg 2
      set block at {_kordinatpvp_2} to glass
      clear player's inventory
      clear arg 2's inventory
      wait 1 seconds
      send player title "&6&lOyunun Başlamasına " with subtitle "&f&l5" for 1 seconds
      wait 1 seconds
      send player title "&6&lOyunun Başlamasına " with subtitle "&f&l4" for 1 seconds
      wait 1 seconds
      send player title "&6&lOyunun Başlamasına " with subtitle "&f&l3" for 1 seconds
      wait 1 seconds
      send player title "&6&lOyunun Başlamasına " with subtitle "&f&l2" for 1 seconds
      wait 1 seconds
      send player title "&6&lOyunun Başlamasına " with subtitle "&f&l1" for 1 seconds
      set block at {_kordinatpvp_1} to air
      set block at {_kordinatpvp_2} to air
      set block at {_kordinatpvp_3} to air
      set block at {_kordinatpvp_4} to air
      set block at {_kordinatpvp_5} to air
      set block at {_kordinatpvp_6} to air
      set block at {_kordinatpvp_7} to air
      set block at {_kordinatpvp_8} to air
      set block at {_kordinatpvp_9} to air
      set block at {_kordinatpvp_10} to air     
      set the player's walk speed to 0.3
      set the arg 2's walk speed to 0.3
      set {_slotno} to 0
      loop 36 times:
       set slot {_slotno} of player's inventory to {slot.no.%{_slotno}%}
       set slot {_slotno} of arg 2's inventory to {slot.no.%{_slotno}%}
       add 1 to {_slotno}
      set the helmet of player to {invhelmet}
      set the helmet of arg 2 to {invhelmet}
      set the chestplate of player to {invchest}
      set the chestplate of arg 2 to {invchest}
      set the leggings of player to {invleg}
      set the leggings of arg 2 to {invleg}
      set the boots of player to {invboot}
      set the boots of arg 2 to {invboot}
     else:
      send "&6&l[PVP] &7İsteğiniz reddedildi!" to player
    else:
     send "&6&l[PVP] &7Şuanda oynanan bir oyun bulunmakta!"
HTML:
Loop 30 times:
    Wait 1 seconds
Bu kısımdan sonra arg 2'ler hata veriyor
 

ZsCraft

Kızıltaş Madencisi
En iyi cevaplar
0
arg 2'nin <text> kısmı yerine <player> yaparsan çözülür. Çünkü başka arg 2'li bir şey göremiyorum yani başka bir yazı gerektiren arg 2 yok ortalıkta sadece oyuncu için kullanıyorsunuz
 

McWeb

Kızıltaş Madencisi
En iyi cevaplar
0
Arg 2 bir yazı. Yazının açlığını değiştiremezsin. Arg 2 parsed as player şeklinde kullan.
Teşekkürler sorun çözüldü
arg 2'nin <text> kısmı yerine <player> yaparsan çözülür. Çünkü başka arg 2'li bir şey göremiyorum yani başka bir yazı gerektiren arg 2 yok ortalıkta sadece oyuncu için kullanıyorsunuz
Bu kodun bir kısmı o arg 2'leri player dışında kullandığım için bu şekilde yapmamıştım
 
Üst