Skript hata

ODCaner

Kömür Madencisi
En iyi cevaplar
0
Kendim uzun zaman sonra bir kod yazmaya başladım. Telefon yapmaya çalışıyorum. Koda bakarsanız az çok ne yaptığımda belli zaten. Benim sıkıntım telefonu kayıt ediyor kendine , çalışıyor ama yere atıp aldığı zaman çalışmıyor.

Kod:
on rightclick with a diamond hoe:
 if player's tool is {iphonex}:
  if {iphonex.%player%} isn't set:
   set line 2 of lore of player's tool to "&a%player's name%'in &7&lIphone &c&lX&f'i"
   delete {iphonex.%player%}
   set {iphonex.%player%} to held item of player
   message "&c&lIphone X Kurulumu Tamamlandı. Kullanıma Hazırdır." to player
  else:
   message "&cZaten Iphone X'e Sahipsin Önce Telefonu Sildirmelisin" to player
   cancel event
 else if player's tool is {iphonex.%player%}:
  open chest with 3 row named "&bYeni Esyalar !" to player
  format slot 0 of player with grass named "&4&6Sil" with lore "&6Plugini Yeniler" to close then run [make player execute command "telefonsil iphonex"]
 
Üst