Bulundu Guide Function hatası

Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

BurakEnes123

Somon Balığı Selam Vermeye Geldi
Katılım
15 Ağustos 2022
Mesajlar
20
Elmaslar
4
Puan
395
Yaş
24
Konum
İstanbul
Minecraft
BurakEnes123

Discord:

BurakEnes#3124

Merhabalar, ben bir guiyi Function olarak oluşturdum fakat bu kodda hata alıyorum;
Kod:
format slot 19 of {_p} with * wool named "&aOnay" with lore "" and "" to close then run function ıtem1(player)
koddun sadece "function ıtem1(player)" kısmı hatalı bunun doğru yazılımı nasıl ? yardımcı olursanız sevinirim.
 
Merhabalar, ben bir guiyi Function olarak oluşturdum fakat bu kodda hata alıyorum;
Kod:
format slot 19 of {_p} with * wool named "&aOnay" with lore "" and "" to close then run function ıtem1(player)
koddun sadece "function ıtem1(player)" kısmı hatalı bunun doğru yazılımı nasıl ? yardımcı olursanız sevinirim.
"ı" yerine "i" kullanın
 
Ekran Alıntısı.PNG

Bu hatayı veriyor.
evet türkçe karakterden dolayı kaynaklanır o şekil deneyip test edin aksi halinde log paylaşın
Zamanında çalışıyordu, eksik bir addon veya kodda sorun olabilir.
 
Kod:
format slot 19 of {_p} with * wool named "&aOnay" with lore "" and "" to close then run [function ıtem1(player)]
format slot 19 of {_p} with * wool named "&aOnay" with lore "" and "" to close then run [ıtem1(player)]
format slot 19 of {_p} with * wool named "&aOnay" with lore "" and "" to close then run ıtem1(player)
bu şekilde dener misin
 
TuSKe eklentisini kullanarak aşağıdaki gibi de kullanabilirsin

Kod:
make gui slot 19 of player with * wool named "&aOnay" with lore "" to close then run function ıtem1(player)
 
Kod:
format slot 19 of {_p} with * wool named "&aOnay" with lore "" and "" to close then run [function ıtem1(player)]
format slot 19 of {_p} with * wool named "&aOnay" with lore "" and "" to close then run [ıtem1(player)]
format slot 19 of {_p} with * wool named "&aOnay" with lore "" and "" to close then run ıtem1(player)
bu şekilde dener misin
Yazdığın seçeneklerin hepsini daha önceden de demedim fakat gene çalışmadı.
 
TuSKe eklentisini kullanarak aşağıdaki gibi de kullanabilirsin

Kod:
make gui slot 19 of player with * wool named "&aOnay" with lore "" to close then run function ıtem1(player)
Tuske eklentisi ile çalıştığını biliyorum fakat sunucumun sürümü 1.18.2 ve Tuske desteklemiyor diye biliyorum. ve konuya 1.16.4 yazmışım kusuruma bakma, düzeltiyorum.
 
Sorunun sebebi fonksiyonda player verisini {_p} olarak yansıttığın halde kod sonuna player olarak yazmışsın.

Bu kodu deneyin:
Kod:
format slot 19 of {_p} with * wool named "&aOnay" with lore "" and "" to close then run function item1({_p})
 
Sorunun sebebi fonksiyonda player verisini {_p} olarak yansıttığın halde kod sonuna player olarak yazmışsın.

Bu kodu deneyin:
Kod:
format slot 19 of {_p} with * wool named "&aOnay" with lore "" and "" to close then run function item1({_p})
Verdiğiniz kod hata verdi fakat verdiğiniz bilgiye dayanarak
Kod:
format slot 19 of {_p} with * wool named "&aOnay" with lore "" and "" to close then run [item1({_p})]
bunu denedim, hata ortadan kalktı fakat
Kod:
function item1(p: player):
    send "sa" to {_p}
Function bu halde bile çalışmıyor ama hata da vermiyor.
 
Kod:
on inventory click:
    if name of player's current inventory is "Test":
        if clicked slot is 19:
            send "Test" to player
Bu kodu kullananlar da var, çalışıyor fakat gui de item olan bir slot yazarsanız, tıkladığınızda gui kapanıyor ve çalışmıyor.
 
Son olarak senin sorununu kökten çözebileceğin forumdan bir link vereceğim. Bu linkteki GUI
sistemini kullanarak tekrardan kodu yazmanı öneriyorum. Son sürümlerde TuSke addonu çalışmıyor diye
biliyorum zaten.

Tıkla ve Linke git!
 
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

Hala Discord sunucumuza katılmadın mı?

Büyük bir topluluğun parçası ol, etkinliklere katıl ve özel hediyeler kazanma şansı yakala!

Şimdi Katıl
Üst