Depo Skripti Hatası

ClinderCraft

Ağaç Yumruklayıcı
Mesajlar
23
En iyi cevaplar
0
Beğeniler
4
Puanları
200
bu skriptteki hataları düzeltecek birini arıyorum (çok fazla hata var)
Kod:
options:
    prefix: &cOtosat &8>
    kacdiaolunca: 64


On Pick Up diamond:
    if {otomatik.maden.depo.%player%} is set:
        if player has {@kacdiaolunca} diamond:
            set player's {_diamond} to diamond
            send " {@prefix} &9Elmas'lar &aDepoya Aktarıldı &2/depo&a!"

command /otosat [<text>]:
    trigger:
        if arg 1 is "ac":
            set {otomatik.maden.depo.%player%} to true
            send " {@prefix} &aOtomatik &3Satma &aAçıldı!"
        if arg 1 is "kapat":
            delete {otomatik.maden.depo.%player%}
            send " {@prefix} &aOtomatik &3Satma &cKapatıldı!"
        if arg 1 is not set:
            send " "
            send " &7> &aOtomatik satmayı açmak için: &9/otosat ac"
            send " &7> &aOtomatik satmayı kapatmak için: &9/otosat kapat"
            send " "
command /depo [<text>]:
    trigger:
        if arg 1 is not set:
            send " "
            send " &7> &aDeponuzda Bulunan Elmas Sayısı:&b {_diadepo}"
            send " &7> &aDepodaki madenlerinizi satmak ya da almak için &2/depo al/sat"
            send " "
        if arg 1 is "al":
            give {_diadepo} diamond to player
            send " "
            send " &7> &aDepodaki Madenlerinizi Aldınız."
            send " "
        if arg 1 is "sat":
            give {_diadepo} diamond to player
            execute player command "/sell diamond"
            send " "
            send " &7> &aDepodaki Madenlerinizi Sattınız."
            send " "
 


ToprakM

KEK
Emektar Üye
Mesajlar
440
En iyi cevaplar
49
Beğeniler
661
Puanları
2,375
Ruh hali
Hataları atar mısınız?
 

ClinderCraft

Ağaç Yumruklayıcı
Mesajlar
23
En iyi cevaplar
0
Beğeniler
4
Puanları
200
Hataları atar mısınız?

tamam
ama kodu biraz daha değiştirdim buyrun

yenşi kod :
Kod:
options:
    prefix: &cOtosat &8>
    kacdiaolunca: 64


On Pick Up diamond:
    if {otomatik.maden.depo.%player%} is set:
        if player has {@kacdiaolunca} diamond:
            set player's diamonds to {_diamond}
            send " {@prefix} &9Elmas'lar &aDepoya Aktarıldı &2/depo&a!"

command /otosat [<text>]:
    trigger:
        if arg 1 is "ac":
            set {otomatik.maden.depo.%player%} to true
            send " {@prefix} &aOtomatik &3Satma &aAçıldı!"
        if arg 1 is "kapat":
            delete {otomatik.maden.depo.%player%}
            send " {@prefix} &aOtomatik &3Satma &cKapatıldı!"
        if arg 1 is not set:
            send " "
            send " &7> &aOtomatik satmayı açmak için: &9/otosat ac"
            send " &7> &aOtomatik satmayı kapatmak için: &9/otosat kapat"
            send " "
command /depo [<text>]:
    trigger:
        if arg 1 is not set:
            send " "
            send " &7> &aDeponuzda Bulunan Elmas Sayısı:&b {_diamond}"
            send " &7> &aDepodaki madenlerinizi satmak ya da almak için &2/depo al/sat"
            send " "
            stop
        if arg 1 is "al":
            give {_diadepo} diamond to player
            send " "
            send " &7> &aDepodaki Madenlerinizi Aldınız."
            send " "
        if arg 1 is "sat":
            give {_diamond} to player
            execute player command "/sell diamond"
            send " "
            send " &7> &aDepodaki Madenlerinizi Sattınız."
            send " "

hatalar :
Kod:
[02:11:48] [Server thread/INFO]: [0;37;22m[[0;33;22mSkript[0;37;22m][m Reloading [0;33;22msat.sk[m...[m
[02:11:48] [Server thread/ERROR]: indentation error: expected 2 tabs, but found 8 spaces (sat.sk, line 8: if player has {@kacdiaolunca} diamond:')
[02:11:48] [Server thread/ERROR]: indentation error: expected 2 tabs, but found 12 spaces (sat.sk, line 9: set player's diamonds to {_diamond}')
[02:11:48] [Server thread/ERROR]: indentation error: expected 2 tabs, but found 3 tabs (sat.sk, line 10: send " {@prefix} &9Elmas'lar &aDepoya Aktarıldı &2/depo&a!"')
[02:11:48] [Server thread/WARN]: Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (sat.sk, line 7: if {otomatik.maden.depo.%player%} is set:')
[02:11:48] [Server thread/ERROR]: indentation error: expected 12 spaces, but found 3 tabs (sat.sk, line 30: send " &7> &aDepodaki madenlerinizi satmak ya da almak için &2/depo al/sat"')
[02:11:48] [Server thread/ERROR]: indentation error: expected 12 spaces, but found 3 tabs (sat.sk, line 32: stop')
[02:11:48] [Server thread/ERROR]: indentation error: expected 12 spaces, but found 3 tabs (sat.sk, line 35: send " "')
[02:11:48] [Server thread/ERROR]: indentation error: expected 12 spaces, but found 3 tabs (sat.sk, line 40: execute player command "/sell diamond"')
[02:11:48] [Server thread/ERROR]: indentation error: expected 12 spaces, but found 3 tabs (sat.sk, line 41: send " "')
[02:11:48] [Server thread/ERROR]: indentation error: expected 2 tabs, but found 8 spaces (sat.sk, line 8: if player has {@kacdiaolunca} diamond:')
[02:11:48] [Server thread/ERROR]: indentation error: expected 2 tabs, but found 12 spaces (sat.sk, line 9: set player's diamonds to {_diamond}')
[02:11:48] [Server thread/ERROR]: indentation error: expected 2 tabs, but found 3 tabs (sat.sk, line 10: send " {@prefix} &9Elmas'lar &aDepoya Aktarıldı &2/depo&a!"')
[02:11:48] [Server thread/WARN]: Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (sat.sk, line 7: if {otomatik.maden.depo.%player%} is set:')
[02:11:48] [Server thread/ERROR]: indentation error: expected 12 spaces, but found 3 tabs (sat.sk, line 30: send " &7> &aDepodaki madenlerinizi satmak ya da almak için &2/depo al/sat"')
[02:11:48] [Server thread/ERROR]: indentation error: expected 12 spaces, but found 3 tabs (sat.sk, line 32: stop')
[02:11:48] [Server thread/ERROR]: indentation error: expected 12 spaces, but found 3 tabs (sat.sk, line 35: send " "')
[02:11:48] [Server thread/ERROR]: indentation error: expected 12 spaces, but found 3 tabs (sat.sk, line 40: execute player command "/sell diamond"')
[02:11:48] [Server thread/ERROR]: indentation error: expected 12 spaces, but found 3 tabs (sat.sk, line 41: send " "')
[02:11:48] [Server thread/ERROR]: '{_diadepo} diamond' can't be added to a player because the former is neither an item type, an inventory nor an experience point (sat.sk, line 34: give {_diadepo} diamond to player')
[02:11:48] [Server thread/INFO]: [0;37;22m[[0;33;22mSkript[0;37;22m][m [0;31;22mEncountered 17 errors while reloading [0;33;22msat.sk[m![m
 

ToprakM

KEK
Emektar Üye
Mesajlar
440
En iyi cevaplar
49
Beğeniler
661
Puanları
2,375
Ruh hali
Bunu dener misin?
JavaScript:
options:
    prefix: &cOtosat &8>
    kacdiaolunca: 64


On Pick Up diamond:
    if {otomatik.maden.depo.%player%} is set:
        if player has {@kacdiaolunca} diamond:
                set player's diamonds to {diamond::%player%}
                send " {@prefix} &9Elmas'lar &aDepoya Aktarıldı &2/depo&a!"

command /otosat [<text>]:
    trigger:
        if arg 1 is "ac":
            set {otomatik.maden.depo.%player%} to true
            send " {@prefix} &aOtomatik &3Satma &aAçıldı!"
        if arg 1 is "kapat":
            delete {otomatik.maden.depo.%player%}
            send " {@prefix} &aOtomatik &3Satma &cKapatıldı!"
        if arg 1 is not set:
            send " "
            send " &7> &aOtomatik satmayı açmak için: &9/otosat ac"
            send " &7> &aOtomatik satmayı kapatmak için: &9/otosat kapat"
            send " "
command /depo [<text>]:
    trigger:
        if arg 1 is not set:
            send " "
            send " &7> &aDeponuzda Bulunan Elmas Sayısı:&b %{diamond::%player%}%"
            send " &7> &aDepodaki madenlerinizi satmak ya da almak için &2/depo al/sat"
            send " "
            stop
        if arg 1 is "al":
            give {diamond::%player%} diamond to player
            send " "
            send " &7> &aDepodaki Madenlerinizi Aldınız."
            send " "
        if arg 1 is "sat":
            give {diamond::%player%} to player
            execute player command "/sell diamond"
            send " "
            send " &7> &aDepodaki Madenlerinizi Sattınız."
            send " "
 

ClinderCraft

Ağaç Yumruklayıcı
Mesajlar
23
En iyi cevaplar
0
Beğeniler
4
Puanları
200
Bunu dener misin?
JavaScript:
options:
    prefix: &cOtosat &8>
    kacdiaolunca: 64


On Pick Up diamond:
    if {otomatik.maden.depo.%player%} is set:
        if player has {@kacdiaolunca} diamond:
                set player's diamonds to {diamond::%player%}
                send " {@prefix} &9Elmas'lar &aDepoya Aktarıldı &2/depo&a!"

command /otosat [<text>]:
    trigger:
        if arg 1 is "ac":
            set {otomatik.maden.depo.%player%} to true
            send " {@prefix} &aOtomatik &3Satma &aAçıldı!"
        if arg 1 is "kapat":
            delete {otomatik.maden.depo.%player%}
            send " {@prefix} &aOtomatik &3Satma &cKapatıldı!"
        if arg 1 is not set:
            send " "
            send " &7> &aOtomatik satmayı açmak için: &9/otosat ac"
            send " &7> &aOtomatik satmayı kapatmak için: &9/otosat kapat"
            send " "
command /depo [<text>]:
    trigger:
        if arg 1 is not set:
            send " "
            send " &7> &aDeponuzda Bulunan Elmas Sayısı:&b %{diamond::%player%}%"
            send " &7> &aDepodaki madenlerinizi satmak ya da almak için &2/depo al/sat"
            send " "
            stop
        if arg 1 is "al":
            give {diamond::%player%} diamond to player
            send " "
            send " &7> &aDepodaki Madenlerinizi Aldınız."
            send " "
        if arg 1 is "sat":
            give {diamond::%player%} to player
            execute player command "/sell diamond"
            send " "
            send " &7> &aDepodaki Madenlerinizi Sattınız."
            send " "
ne yazık ki itemi yerden alınca depoya göndermiyor hataları şunlar:


Kod:
[02:20:30] [Server thread/INFO]: [0;37;22m[[0;33;22mSkript[0;37;22m][m Reloading [0;33;22msat.sk[m...[m
[02:20:30] [Server thread/ERROR]: indentation error: expected 12 spaces, but found 16 spaces (sat.sk, line 9: set player's diamonds to {diamond::%player%}')
[02:20:30] [Server thread/ERROR]: indentation error: expected 12 spaces, but found 16 spaces (sat.sk, line 10: send " {@prefix} &9Elmas'lar &aDepoya Aktarıldı &2/depo&a!"')
[02:20:30] [Server thread/WARN]: Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (sat.sk, line 8: if player has {@kacdiaolunca} diamond:')
[02:20:30] [Server thread/ERROR]: indentation error: expected 12 spaces, but found 16 spaces (sat.sk, line 9: set player's diamonds to {diamond::%player%}')
[02:20:30] [Server thread/ERROR]: indentation error: expected 12 spaces, but found 16 spaces (sat.sk, line 10: send " {@prefix} &9Elmas'lar &aDepoya Aktarıldı &2/depo&a!"')
[02:20:30] [Server thread/WARN]: Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (sat.sk, line 8: if player has {@kacdiaolunca} diamond:')
[02:20:30] [Server thread/ERROR]: '::%player%} diamond' is not a valid item data (sat.sk, line 34: give {diamond::%player%} diamond to player')
[02:20:30] [Server thread/INFO]: [0;37;22m[[0;33;22mSkript[0;37;22m][m [0;31;22mEncountered 5 errors while reloading [0;33;22msat.sk[m![m
 

ToprakM

KEK
Emektar Üye
Mesajlar
440
En iyi cevaplar
49
Beğeniler
661
Puanları
2,375
Ruh hali
Basit bir hata yapmışım. Bunun çalışması gerek.
JavaScript:
options:
    prefix: &cOtosat &8>
    kacdiaolunca: 64


On Pick Up diamond:
    if {otomatik.maden.depo.%player%} is set:
        if player has {@kacdiaolunca} diamond:
            set player's diamonds to {diamond::%player%}
            send " {@prefix} &9Elmas'lar &aDepoya Aktarıldı &2/depo&a!"

command /otosat [<text>]:
    trigger:
        if arg 1 is "ac":
            set {otomatik.maden.depo.%player%} to true
            send " {@prefix} &aOtomatik &3Satma &aAçıldı!"
        if arg 1 is "kapat":
            delete {otomatik.maden.depo.%player%}
            send " {@prefix} &aOtomatik &3Satma &cKapatıldı!"
        if arg 1 is not set:
            send " "
            send " &7> &aOtomatik satmayı açmak için: &9/otosat ac"
            send " &7> &aOtomatik satmayı kapatmak için: &9/otosat kapat"
            send " "
 

ClinderCraft

Ağaç Yumruklayıcı
Mesajlar
23
En iyi cevaplar
0
Beğeniler
4
Puanları
200
Basit bir hata yapmışım. Bunun çalışması gerek.
JavaScript:
options:
    prefix: &cOtosat &8>
    kacdiaolunca: 64


On Pick Up diamond:
    if {otomatik.maden.depo.%player%} is set:
        if player has {@kacdiaolunca} diamond:
            set player's diamonds to {diamond::%player%}
            send " {@prefix} &9Elmas'lar &aDepoya Aktarıldı &2/depo&a!"

command /otosat [<text>]:
    trigger:
        if arg 1 is "ac":
            set {otomatik.maden.depo.%player%} to true
            send " {@prefix} &aOtomatik &3Satma &aAçıldı!"
        if arg 1 is "kapat":
            delete {otomatik.maden.depo.%player%}
            send " {@prefix} &aOtomatik &3Satma &cKapatıldı!"
        if arg 1 is not set:
            send " "
            send " &7> &aOtomatik satmayı açmak için: &9/otosat ac"
            send " &7> &aOtomatik satmayı kapatmak için: &9/otosat kapat"
            send " "
diamondu entity type olarak görmedi ne yapmam gerekiyor?

1544993193750.png
 
Son düzenleme:

ToprakM

KEK
Emektar Üye
Mesajlar
440
En iyi cevaplar
49
Beğeniler
661
Puanları
2,375
Ruh hali
JavaScript:
set player's diamonds to {diamond::%player%}

yerine

JavaScript:
remove {@kacdiaolunca} of diamond from player's inventory
add {@kacdiaolunca} to {diamond::%player%}

yazarsan çözülecektir.
 

Üst