[SK/HELP] Hatasız Bir Hata :/

BraveHero

Dobloyu n'aptın
En iyi cevaplar
1
Yeni bir skript üzerinde çalışıyorum. (Herkese ücretsiz olacak. Çünkü basit bir şey)
PvP+.
Spoiler vermeyeceğim. Soruna geçelim.
Bu kod bir türlü olmuyor. Altta o değeri true yaptığım halde her kullanışımda "not set" olarak algılıyor..​

On Death:

Kod:
if {pvpplus::%attacker%::kullanim::%4st line of lore of attacker's tool%} is not set:
    add 1 to {pvpplus::%attacker%::numara}
    set the 4st line of lore of attacker's tool to "%{pvpplus::%attacker%::numara}%"
    set {pvpplus::%attacker%::kullanim::%{pvpplus::%attacker%::numara}%} to true

 

Blueyescat

Bedrock Kaşifi
En iyi cevaplar
0
Kodun sadece bu kısmını görerek sorunu söylemem çok zor, bu kod doğru yani anlaşılan sorun o variableyi setleme sırasında olabilir.
Tek diyebileceğim kodun şu düzende olması gerektiği:
PHP:
command /al:
    trigger:
        give a diamond sword with lore "1||2||3||deneme" to player
        set {pvpplus::%player%::kullanim::deneme} to true

on death:
    if {pvpplus::%attacker%::kullanim::%line 4 of lore of attacker's tool%} is not set:
        send "belirli degil" to attacker
/al komutu ile aldığın elmas kılıçla kestiğin bir şey için "belirli degil" dememeli.
 

BraveHero

Dobloyu n'aptın
En iyi cevaplar
1
Kodun sadece bu kısmını görerek sorunu söylemem çok zor, bu kod doğru yani anlaşılan sorun o variableyi setleme sırasında olabilir.
Tek diyebileceğim kodun şu düzende olması gerektiği:
PHP:
command /al:
    trigger:
        give a diamond sword with lore "1||2||3||deneme" to player
        set {pvpplus::%player%::kullanim::deneme} to true

on death:
    if {pvpplus::%attacker%::kullanim::%line 4 of lore of attacker's tool%} is not set:
        send "belirli degil" to attacker
/al komutu ile aldığın elmas kılıçla kestiğin bir şey için "belirli degil" dememeli.
Kendi kendine esrarengiz bir şekilde düzeldi :/
Yien de teşekkürler :p
 
Üst