Sol Reklam

Çözüldü There is no player in a function event hatası

Durum
Mesaj gönderimine kapalı.

FurkanB0674

Odunlara Vur Vur Vur!
Katılım
26 Mayıs 2021
Mesajlar
26
Elmaslar
5
Puanlar
3.710
Yaş
25
Minecraft
xFurkanAdenia

Discord:

xfurkanadenia

function alevtopu(p: player): if difference between {yetenek_alevtopu_Cooldown::%{_p}%} and now >= {@yetenek_alevtopu_cooldown} seconds: set {yetenek_alevtopu_Cooldown::%{_p}%} to now set {_co} to 0 make the player shoot an fireball at speed 1 add 1 to {_co} send "&bAlev Topu Fırlattın!" to {_p} else: send "&cBu özelliği {@yetenek_alevtopu_cooldown} Saniyede bir kullanabilirsin!" to {_p}

Bu kodda;
There's no player in a function event (kilic_yetenek.sk, line 46: make the player shoot an fireball at speed 1) Hatası alıyorum saatlerce araştırdım fakat hiç bir bilgi bulamadım

Yardımcı Olursanız Mutluluk Duyarım :)
 
function alevtopu(p: player): if difference between {yetenek_alevtopu_Cooldown::%{p}%} and now >= {@yetenek_alevtopu_cooldown} seconds: set {yetenek_alevtopu_Cooldown::%{p}%} to now set {_co} to 0 launch fireball at p with speed 1 add 1 to {_co} send "&bAlev Topu Fırlattın!" to p else: send "&cBu özelliği {@yetenek_alevtopu_cooldown} Saniyede bir kullanabilirsin!" to p

make the player shoot a fireball at speed 1 ifadesini launch fireball at p with speed 1 olarak değiştirdim. Böylece ateş topu fırlatma işlemi doğru şekilde gerçekleşecektir çalışması gerekiyor kontrol etmedim
 
function alevtopu(p: player): if difference between {yetenek_alevtopu_Cooldown::%{p}%} and now >= {@yetenek_alevtopu_cooldown} seconds: set {yetenek_alevtopu_Cooldown::%{p}%} to now set {_co} to 0 launch fireball at p with speed 1 add 1 to {_co} send "&bAlev Topu Fırlattın!" to p else: send "&cBu özelliği {@yetenek_alevtopu_cooldown} Saniyede bir kullanabilirsin!" to p

make the player shoot a fireball at speed 1 ifadesini launch fireball at p with speed 1 olarak değiştirdim. Böylece ateş topu fırlatma işlemi doğru şekilde gerçekleşecektir çalışması gerekiyor kontrol etmedim
Merhaba! Öncelikle Geç Cevap verdiğim için üzgünüm ama sorunu buldum
İşte Kod;
Kod:
function alevtopu(p: player):
    if difference between {frbcooldown::%{_p}%} and now >= 10 seconds:
        set {frbcooldown::%{_p}%} to now
        set {_co} to 0
        loop all players in radius 2 around {_p}:
            if loop-player is {_p}:
                make the loop-player shoot an fireball at speed 1
                add 1 to {_co}
        send "&bAlev Topu Fırlattın!" to {_p}
    else:
        send "&cBu özelliği 10 Saniyede bir kullanabilirsin!" to {_p}

oyuncuları loop içine alıp eğer oyuncu eşyaya sağ tıklayan (bu function'ı çalıştıran) kişi ise 1 tane alev topu fırlatır bunu loop içine almadığımız sürece direk player kullanırsak aynı hatayı alıyoruz.

Hatam var ise düzeltin lütfen skript kodlamaya yeni başladım.
 
Durum
Mesaj gönderimine kapalı.
Neden altınlarını Discord sunucumuzda kazmıyorsun? TIKLA VE KATIL!