Çözüldü Ufak Bir Hata Alıyorum Yardımcı Olurmusunuz?

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

aloneshaman

Somon Balığı Selam Vermeye Geldi
Katılım
14 Temmuz 2016
Mesajlar
15
Elmaslar
0
Puan
0
Yaş
25
Kod:
        if {otosataltın::%player%} is true:
            if player has {@altınadet} gold ingot:
                remove {@altınadet} gold ingot from player's inventory
                if player has permission "otosat.vip":
                    add {@vipaltınfiyat} to player's money
                    if {otomesaj::%player%} is true:
                        send "{@p} &f{@altınadet} &7adet altın &f{@vipaltınfiyat} TL&7'ye &7satılmıştır." to player
                else
                    add {@altınfiyat} to player's money
                    if {otomesaj::%player%} is true:
                        send "{@p} &f{@altınadet} &7adet altın &f{@altınfiyat} TL&7'ye &7satılmıştır." to

Sıkıntı Else'de nereye koysam hata veriyor
Else yukarıdaki kodda gibiyken:
Kod:
[19:16:32 ERROR]: indentation error: expected 16 spaces, but found 20 spaces (otosat.sk, line 31: add {@alt²nfiyat} to player's money')
[19:16:32 ERROR]: indentation error: expected 16 spaces, but found 20 spaces (otosat.sk, line 32: if {otomesaj::%player%} is true:')
[19:16:32 ERROR]: indentation error: expected 16 spaces, but found 24 spaces (otosat.sk, line 33: send "{@p} &f{@alt²nadet} &7adet alt²n &f{@alt²nfiyat} TL&7'ye &7sat²lm²■t²r." to player')
[19:16:32 ERROR]: indentation error: expected 16 spaces, but found 20 spaces (otosat.sk, line 31: add {@alt²nfiyat} to player's money')
[19:16:32 ERROR]: indentation error: expected 16 spaces, but found 20 spaces (otosat.sk, line 32: if {otomesaj::%player%} is true:')
[19:16:32 ERROR]: indentation error: expected 16 spaces, but found 24 spaces (otosat.sk, line 33: send "{@p} &f{@alt²nadet} &7adet alt²n &f{@alt²nfiyat} TL&7'ye &7sat²lm²■t²r." to player')
[19:16:33 ERROR]: Can't understand this condition/effect: else (otosat.sk, line 30: else')
 
Kod:
        if {otosataltın::%player%} is true:
            if player has {@altınadet} gold ingot:
                remove {@altınadet} gold ingot from player's inventory
                if player has permission "otosat.vip":
                    add {@vipaltınfiyat} to player's money
                    if {otomesaj::%player%} is true:
                        send "{@p} &f{@altınadet} &7adet altın &f{@vipaltınfiyat} TL&7'ye &7satılmıştır." to player
                else
                    add {@altınfiyat} to player's money
                    if {otomesaj::%player%} is true:
                        send "{@p} &f{@altınadet} &7adet altın &f{@altınfiyat} TL&7'ye &7satılmıştır." to

Sıkıntı Else'de nereye koysam hata veriyor
Else yukarıdaki kodda gibiyken:
Kod:
[19:16:32 ERROR]: indentation error: expected 16 spaces, but found 20 spaces (otosat.sk, line 31: add {@alt²nfiyat} to player's money')
[19:16:32 ERROR]: indentation error: expected 16 spaces, but found 20 spaces (otosat.sk, line 32: if {otomesaj::%player%} is true:')
[19:16:32 ERROR]: indentation error: expected 16 spaces, but found 24 spaces (otosat.sk, line 33: send "{@p} &f{@alt²nadet} &7adet alt²n &f{@alt²nfiyat} TL&7'ye &7sat²lm²■t²r." to player')
[19:16:32 ERROR]: indentation error: expected 16 spaces, but found 20 spaces (otosat.sk, line 31: add {@alt²nfiyat} to player's money')
[19:16:32 ERROR]: indentation error: expected 16 spaces, but found 20 spaces (otosat.sk, line 32: if {otomesaj::%player%} is true:')
[19:16:32 ERROR]: indentation error: expected 16 spaces, but found 24 spaces (otosat.sk, line 33: send "{@p} &f{@alt²nadet} &7adet alt²n &f{@alt²nfiyat} TL&7'ye &7sat²lm²■t²r." to player')
[19:16:33 ERROR]: Can't understand this condition/effect: else (otosat.sk, line 30: else')
Bunu oyuncu ne yapınca gerçekleşmesini istiyorsun
 
: kısmını unutmuşsun else: koyacaksın ne yapmayı çalıştığını söylersen detaylı bilgi verebilirim

Sanırsam oyuncunun envanterinde belli bir altın olunca otomatik satacak
Gönderi otomatik olarak birleştirildi:

Kod:
options:
    altınfiyat: buraya istediğin değeri yaz
    vipaltınfiyat: istediğin vip değerini yaz
    altınadet: kaç tane olunca otomatik satılacağını yaz.
if {otosataltın::%player%} is true:
    if player has {@altınadet} gold ingot:
        remove {@altınadet} gold ingot from player's inventory
        if player has permission "otosat.vip":
        add {@vipaltınfiyat} to player's money
            if {otomesaj::%player%} is true:
            send "{@p} &f{@altınadet} &7adet altın &f{@vipaltınfiyat} TL&7'ye &7satılmıştır." to player
        else:
            add {@altınfiyat} to player's money
            if {otomesaj::%player%} is true:
                send "{@p} &f{@altınadet} &7adet altın &f{@altınfiyat} TL&7'ye &7satılmıştır." to player
Doğrusu budur hocam fakat otosat::%player% gibi değerleri atadıysanız
 
Son düzenleme:
: kısmını unutmuşsun else: koyacaksın ne yapmayı çalıştığını söylersen detaylı bilgi verebilirim

Sanırsam oyuncunun envanterinde belli bir altın olunca otomatik satacak
Gönderi otomatik olarak birleştirildi:

Kod:
options:
    altınfiyat: buraya istediğin değeri yaz
    vipaltınfiyat: istediğin vip değerini yaz
    altınadet: kaç tane olunca otomatik satılacağını yaz.
if {otosataltın::%player%} is true:
    if player has {@altınadet} gold ingot:
        remove {@altınadet} gold ingot from player's inventory
        if player has permission "otosat.vip":
        add {@vipaltınfiyat} to player's money
            if {otomesaj::%player%} is true:
            send "{@p} &f{@altınadet} &7adet altın &f{@vipaltınfiyat} TL&7'ye &7satılmıştır." to player
        else:
            add {@altınfiyat} to player's money
            if {otomesaj::%player%} is true:
                send "{@p} &f{@altınadet} &7adet altın &f{@altınfiyat} TL&7'ye &7satılmıştır." to player
Doğrusu budur hocam fakat otosat::%player% gibi değerleri atadıysanız
eventi koymayımı unuttunuz ?
 
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