Çözüldü Parakutusu sorunu

  • Konuyu Başlatan Konuyu Başlatan Krito
  • Başlangıç tarihi Başlangıç tarihi
  • Görüntüleme 427
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

Krito

Odunlara Vur Vur Vur!
Katılım
14 Mart 2017
Mesajlar
47
Elmaslar
1
Puan
0
Yaş
46
command /narinkutu:
permission: para.kutu
trigger:
set {para.%player%} to 16 chest named "&eNarin Kutu"
give {para.%player%} to player
on rightclick holding a chest:
if tool's name is "&eNarin Kutu":
cancel event
remove 1 chest named "&eNarin Kutu" from player's inventory
chance of 60%:
add 1750000 to the player's account
message "&7&l» &9&l1M750K"
stop
chance of 55%:
add 2750000 to the player's account
message "&7&l» &e&l2M750K"
stop
chance of 50%:
add 5000000 to the player's account
message "&7&l» &5&l5M250K"
stop
chance of 45%:
add 7500000 to the player's account
message "&7&l» &a&l7M800K"
stop
chance of 35%:
add 20000000 to the player's account
message "&7&l» &c&l20M"
stop
chance of :
add 40000000 to the player's account
message "&7&l» &6&l40M"
stop
[23:09:49] [Server thread/ERROR]: indentation error: expected 12 spaces, but found 2 tabs (narinkutu.sk, line 30: chance of 20%:')
[23:09:49] [Server thread/ERROR]: indentation error: expected 12 spaces, but found 2 tabs (narinkutu.sk, line 30: chance of 20%:')
[23:09:49] [Server thread/INFO]: [0;37;22m[[0;33;22mSkript[0;37;22m][m [0;31;22mEncountered 2 errors while reloading [0;33;22mnarinkutu.sk[m![m

Neden böyle hata veriyor ?
 
Buyur;
Kod:
command /narinkutu:
    permission: para.kutu
    trigger:
        set {para.%player%} to 16 chest named "&eNarin Kutu"
        give {para.%player%} to player
        
on rightclick holding a chest:
    if tool's name is "&eNarin Kutu":
        cancel event
        remove 1 chest named "&eNarin Kutu" from player's inventory
        chance of 60%:
            add 1750000 to the player's account
            message "&7&l» &9&l1M750K"
            stop
        chance of 55%:
            add 2750000 to the player's account
            message "&7&l» &e&l2M750K"
            stop
        chance of 50%:
            add    5000000 to the player's account
            message "&7&l» &5&l5M250K"
            stop
        chance of 45%:
            add 7500000 to the player's account
            message "&7&l» &a&l7M800K"
            stop
        chance of 35%:
            add 20000000 to the player's account
            message "&7&l» &c&l20M"
            stop
        chance of 25:
            add 40000000 to the player's account
            message "&7&l» &6&l40M"
            stop
 
Kod:
on rightclick holding a chest:
    if tool's name is "&eNarin Kutu":
        cancel event
        remove 1 chest named "&eNarin Kutu" from player's inventory
        set {_x} to random integer between 0 and 100#0 ila 100 arasında bir değişken oluştur.
        if {_x} is between 60 and 100:#eğer değişken 60-100 arasında ise aşşağıdakini yap
            add 1750000 to the player's account
            message "&7&l» &9&l1M750K"
        if {_x} is between 50 and 59:#eğer 50 ve 59 arasında ise aşşağıdakileri yap
            add 2750000 to the player's account
            message "&7&l» &e&l2M750K" 
        if {_x} is between 45 and 49:
            add    5000000 to the player's account
            message "&7&l» &5&l5M250K"       
        if {_x} is between 35 and 44:
            add 7500000 to the player's account
            message "&7&l» &a&l7M800K" 
        if {_x} is between 25 and 34:
            add 20000000 to the player's account
            message "&7&l» &c&l20M"
        if {_x} is between 0 and 24:
            add 40000000 to the player's account
            message "&7&l» &6&l40M"
Böyle kullanmak daha mantıklı.
 
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