Yardım satmacubugu hatası

acikgozss

Sudan Çıkmış
Mesajlar
5
En iyi cevaplar
1
Beğeniler
1
Puanları
80
Skript Plugininin Sürümü
1.8
Oyun Sürümü
1.8
Merhabalar ben serverime satmacubugu skripti ekledim fakat şöyle bir sorun var 2 tane itemi sk a yazdığımda reloaddan sonra hata geliyor ekte hata kodları var skriptide yazıyorum buraya yardımcı olursanız sevinirim.
149089

Kod:
options:
    p: &eSATIS > #Mesaj başlarındaki prefix
    cubukismi: &7&l[&4&lSatış Çubuğu&7&l] #Sandıktaki itemleri satmak için tıklanılacak çubuğun ismi
    1demirfiyati: 15.625 #1 demirin satma fiyatı
    1altinfiyati: 46.875 #1 altının satma fiyatı
    1elmasfiyati: 148.4375 #1 elmasın satma fiyatı
    1zumrutfiyati: 289.0625 #1 zümrütün satma fiyatı
    1zombieti: 5.46875 #1 demir bloğunun satma fiyatı
    1ip: 5.46875 #1 altın bloğunun satma fiyatı
    1ögöz: 5.46875 #1 elmas bloğunun satma fiyatı
    1altınparçası: 5.20833333 #1 zümrüt bloğunun satma fiyatı
    egg: 15.625
    deri: 6.25
    wheat: 4.6875
    1sugarcane: 5.46875
    netherwart: 6.25
    pumpkin: 9.375
    potato: 6.25
    kaktüs: 5.46875
    melon: 5.46875
    kemik: 4.296875
    arrow: 4.296875
   

command /çubuk:
    permission: cc.cubuk
    trigger:
        give 1 diamondhoe named "{@cubukismi}" with lore "&7&lSandığa sol tıkla." to player
on leftclick on chest with diamondhoe:
    if name of player's tool is "{@cubukismi}":
        if {chests::%player%::*} contains location of clicked chest:
            if clicked chest contains iron ingots:
                set {_itemcounti} to number of all iron ingots in clicked chest
                remove {_itemcounti} of iron ingots from clicked chest's inventory
                add {@1demirfiyati} * {_itemcounti} to the player's money
                send "{@p} &a%{_itemcounti}% Demir satıldı. Kazanılan para: &c%{@1demirfiyati} * {_itemcounti}%"
            if clicked chest contains gold ingot:
                set {_itemcountg} to number of all gold ingots in clicked chest
                remove {_itemcountg} of gold ingots from clicked chest's inventory
                add {@1altinfiyati} * {_itemcountg} to the player's money
                send "{@p} &a%{_itemcountg}% Altın satıldı. Kazanılan para: &c%{@1altinfiyati} * {_itemcountg}%"
            if clicked chest contains diamond:
                set {_itemcountd} to number of all diamonds in clicked chest
                remove {_itemcountd} of diamonds from clicked chest's inventory
                add {@1elmasfiyati} * {_itemcountd} to the player's money
                send "{@p} &a%{_itemcountd}% Elmas satıldı. Kazanılan para: &c%{@1elmasfiyati} * {_itemcountd}%"
            if clicked chest contains emerald:
                set {_itemcounte} to number of all emeralds in clicked chest
                remove {_itemcounte} of emeralds from clicked chest's inventory
                add {@1zumrutfiyati} * {_itemcounte} to the player's money
                send "{@p} &a%{_itemcounte}% Zümrüt satıldı. Kazanılan para: &c%{@1zumrutfiyati} * {_itemcounte}%"
            if clicked chest contains rotten flesh:
                set {_itemcountib} to number of all rotten flesh in clicked chest
                remove {_itemcountib} of rotten flesh from clicked chest's inventory
                add {@1zombieti} * {_itemcountib} to the player's money
                send "{@p} &a%{_itemcountib}% Zombi Eti satıldı. Kazanılan para: &c%{@1zombieti} * {_itemcountib}%"
            if clicked chest contains string:
                set {_itemcountgb} to number of all string in clicked chest
                remove {_itemcountgb} of string from clicked chest's inventory
                add {@1ip} * {_itemcountgb} to the player's money
                send "{@p} &a%{_itemcountgb}% Ip satıldı. Kazanılan para: &c%{@1ip} * {_itemcountgb}%"
            if clicked chest contains spider eye:
                set {_itemcountdb} to number of all spider eye in clicked chest
                remove {_itemcountdb} of spider eye from clicked chest's inventory
                add {@1ögöz} * {_itemcountdb} to the player's money
                send "{@p} &a%{_itemcountdb}% Orümcek Gözü satıldı. Kazanılan para: &c%{@1ögöz} * {_itemcountdb}%"
            if clicked chest contains gold nugget:
                set {_itemcounteb} to number of all gold nugget in clicked chest
                remove {_itemcounteb} of gold nugget from clicked chest's inventory
                add {@1altınparçası} * {_itemcounteb} to the player's money
                send "{@p} &a%{_itemcounteb}% Altın Parçası satıldı. Kazanılan para: &c%{@1altınparçası} * {_itemcounteb}%"
            if clicked chest contains egg:
                set {_itemcountgb} to number of all egg in clicked chest
                remove {_itemcountgb} of egg from clicked chest's inventory
                add {@egg} * {_itemcountgb} to the player's money
                send "{@p} &a%{_itemcountgb}% Tavuk Yumurtası satıldı. Kazanılan para: &c%{@egg} * {_itemcountgb}%"
            if clicked chest contains leather:
                set {_itemcountdb} to number of all leather in clicked chest
                remove {_itemcountdb} of leather from clicked chest's inventory
                add {@deri} * {_itemcountdb} to the player's money
                send "{@p} &a%{_itemcountdb}% Deri satıldı. Kazanılan para: &c%{@deri} * {_itemcountdb}%"
            if clicked chest contains wheat:
                set {_itemcounteb} to number of all wheat in clicked chest
                remove {_itemcounteb} of wheat from clicked chest's inventory
                add {@wheat} * {_itemcounteb} to the player's money
                send "{@p} &a%{_itemcounteb}% Buğday satıldı. Kazanılan para: &c%{@wheat} * {_itemcounteb}%"
            if clicked chest contains nether wart:
                set {_itemcountgb} to number of all nether wart in clicked chest
                remove {_itemcountgb} of nether warts from clicked chest's inventory
                add {@netherwart} * {_itemcountgb} to the player's money
                send "{@p} &a%{_itemcountgb}% Nether Wart satıldı. Kazanılan para: &c%{@netherwart} * {_itemcountgb}%"
            if clicked chest contains pumpkin:
                set {_itemcountdb} to number of all pumpkin in clicked chest
                remove {_itemcountdb} of pumpkin from clicked chest's inventory
                add {@pumpkin} * {_itemcountdb} to the player's money
                send "{@p} &a%{_itemcountdb}% Balkabağı satıldı. Kazanılan para: &c%{@pumpkin} * {_itemcountdb}%"
            if clicked chest contains potato:
                set {_itemcounteb} to number of all potato in clicked chest
                remove {_itemcounteb} of potato from clicked chest's inventory
                add {@potato} * {_itemcounteb} to the player's money
                send "{@p} &a%{_itemcounteb}% Patates satıldı. Kazanılan para: &c%{@potato} * {_itemcounteb}%"
            if clicked chest contains cactus:
                set {_itemcountgb} to number of all cactus in clicked chest
                remove {_itemcountgb} of cactus from clicked chest's inventory
                add {@kaktüs} * {_itemcountgb} to the player's money
                send "{@p} &a%{_itemcountgb}% Kaktüs satıldı. Kazanılan para: &c%{@kaktüs} * {_itemcountgb}%"
            if clicked chest contains melon:
                set {_itemcountdb} to number of all melon in clicked chest
                remove {_itemcountdb} of melon from clicked chest's inventory
                add {@melon} * {_itemcountdb} to the player's money
                send "{@p} &a%{_itemcountdb}% Karpuz satıldı. Kazanılan para: &c%{@melon} * {_itemcountdb}%"
            if clicked chest contains bone:
                set {_itemcountdb} to number of all bone in clicked chest
                remove {_itemcountdb} of bone from clicked chest's inventory
                add {@kemik} * {_itemcountdb} to the player's money
                send "{@p} &a%{_itemcountdb}% Kemik satıldı. Kazanılan para: &c%{@kemik} * {_itemcountdb}%"
            if clicked chest contains arrow:
                set {_itemcountdb} to number of all arrow in clicked chest
                remove {_itemcountdb} of arrow from clicked chest's inventory
                add {@arrow} * {_itemcountdb} to the player's money
                send "{@p} &a%{_itemcountdb}% Ok satıldı. Kazanılan para: &c%{@arrow} * {_itemcountdb}%"
               
        else:
            send "{@p} &aSadece kendi sandığındaki madenleri satabilirsin."
 
on place of chest:
    add event-block's location to {chests::%player%::*}
on break of chest:
    if {chest::%player%::*} contains event-block's location:
        remove event-block's location from {chests::%player%::*}
 


ChiaX

Team Arcenia
Emektar Üye
Mesajlar
596
En iyi cevaplar
37
Beğeniler
694
Puanları
2,620
Ruh hali
Merhabalar, bu Skript eklentisinin bir hatası diyebiliriz.

Çözümüne gelirsek çok kolay:

  • 21, 22, 112, 117 nolu satırlardaki boşlukları silin.
  • Sildiğiniz boşlukları "TAB" ile değil "SPACE" ile doldurun.
  • Sorununuz çözülecektir.
İyi forumlar.
 

Üst