Çözüldü Skript Error

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

Sanane88

Koydum Çalışma Masasını
Katılım
3 Ocak 2016
Mesajlar
65
Elmaslar
22
Puan
0
Yaş
26
Merhaba arkadaşlar bu skriptte

'else' has to placed just after an 'if' or 'else if' section (math.sk, line:9, else:')

hatası alıyorum. Çözümünü bilen varsa yardımcı olabilir mi?



Kod:
every 15 minutes:#15dk da bir
    if number of all players > 5:#5 kişiden fazla varsa
        execute console command "oyun"
command /oyun:
    permission: skript.admin
    trigger:
        set {oyun::durum} to true
        set {_x} to random integer between 16 and 100
        else:
            set {_z} to "+" or "-" or "*"

            set {_y} to random integer between 5 and 15
            set {oyun::durum} to true
            if {_z} is "+":
                set {oyun::islem} to {_x} + {_y}
            if {_z} is "*":
                set {oyun::islem} to {_x} * {_y}
            if {_z} is "-":
                set {oyun::islem} to {_x} - {_y}
        
            send all players title "Bil Bakalım?" with subtitle "&7%{_x}% &8%{_z}%&7 %{_y}%" for 10 seconds
            broadcast "&c&lLIVE → &7Bil Bakalım? &7%{_x}% &8%{_z}%&7 %{_y}%"

on chat:
    if {oyun::durum} is true:
        if message is "%{oyun::islem}%":
            send all players title "&aKazanan:" with subtitle "&8%player%."
            set action bar of all players to "&7→ &7Cevap: &8%{oyun::islem}%&7 ←"
            delete {oyun::*}
            give 1 ghast_tear named "&c&lLvL3 &f&lCoin" with lore "&a||&aKullanım Alanı:||&e/Warp Takas" to player
 
Merhaba arkadaşlar bu skriptte

'else' has to placed just after an 'if' or 'else if' section (math.sk, line:9, else:')

hatası alıyorum. Çözümünü bilen varsa yardımcı olabilir mi?



Kod:
every 15 minutes:#15dk da bir
    if number of all players > 5:#5 kişiden fazla varsa
        execute console command "oyun"
command /oyun:
    permission: skript.admin
    trigger:
        set {oyun::durum} to true
        set {_x} to random integer between 16 and 100
        else:
            set {_z} to "+" or "-" or "*"

            set {_y} to random integer between 5 and 15
            set {oyun::durum} to true
            if {_z} is "+":
                set {oyun::islem} to {_x} + {_y}
            if {_z} is "*":
                set {oyun::islem} to {_x} * {_y}
            if {_z} is "-":
                set {oyun::islem} to {_x} - {_y}
      
            send all players title "Bil Bakalım?" with subtitle "&7%{_x}% &8%{_z}%&7 %{_y}%" for 10 seconds
            broadcast "&c&lLIVE → &7Bil Bakalım? &7%{_x}% &8%{_z}%&7 %{_y}%"

on chat:
    if {oyun::durum} is true:
        if message is "%{oyun::islem}%":
            send all players title "&aKazanan:" with subtitle "&8%player%."
            set action bar of all players to "&7→ &7Cevap: &8%{oyun::islem}%&7 ←"
            delete {oyun::*}
            give 1 ghast_tear named "&c&lLvL3 &f&lCoin" with lore "&a||&aKullanım Alanı:||&e/Warp Takas" to player


Çünkü 9.satırdaki else orda olmaması gerekli. veya elsenin üstünde bir if olmalı.

Kod:
every 15 minutes:#15dk da bir
    if number of all players > 5:#5 kişiden fazla varsa
        execute console command "oyun"
command /oyun:
    permission: skript.admin
    trigger:
        if {oyun::durum} is not set:
            set {oyun::durum} to true
            set {_x} to random integer between 16 and 100
            set {_z} to "+" or "-" or "*"
            set {_y} to random integer between 5 and 15
            set {oyun::durum} to true
            if {_z} is "+":
                set {oyun::islem} to {_x} + {_y}
            if {_z} is "*":
                set {oyun::islem} to {_x} * {_y}
            if {_z} is "-":
                set {oyun::islem} to {_x} - {_y}
       
            send all players title "Bil Bakalım?" with subtitle "&7%{_x}% &8%{_z}%&7 %{_y}%" for 10 seconds
            broadcast "&c&lLIVE → &7Bil Bakalım? &7%{_x}% &8%{_z}%&7 %{_y}%"

on chat:
    if {oyun::durum} is true:
        if message is "%{oyun::islem}%":
            send all players title "&aKazanan:" with subtitle "&8%player%."
            set action bar of all players to "&7→ &7Cevap: &8%{oyun::islem}%&7 ←"
            delete {oyun::*}
            give 1 ghast_tear named "&c&lLvL3 &f&lCoin" with lore "&a||&aKullanım Alanı:||&e/Warp Takas" to player

gibi bir şey yapmak istediniz herhalde
 
Çünkü 9.satırdaki else orda olmaması gerekli. veya elsenin üstünde bir if olmalı.

Kod:
every 15 minutes:#15dk da bir
    if number of all players > 5:#5 kişiden fazla varsa
        execute console command "oyun"
command /oyun:
    permission: skript.admin
    trigger:
        if {oyun::durum} is not set:
            set {oyun::durum} to true
            set {_x} to random integer between 16 and 100
            set {_z} to "+" or "-" or "*"
            set {_y} to random integer between 5 and 15
            set {oyun::durum} to true
            if {_z} is "+":
                set {oyun::islem} to {_x} + {_y}
            if {_z} is "*":
                set {oyun::islem} to {_x} * {_y}
            if {_z} is "-":
                set {oyun::islem} to {_x} - {_y}
      
            send all players title "Bil Bakalım?" with subtitle "&7%{_x}% &8%{_z}%&7 %{_y}%" for 10 seconds
            broadcast "&c&lLIVE → &7Bil Bakalım? &7%{_x}% &8%{_z}%&7 %{_y}%"

on chat:
    if {oyun::durum} is true:
        if message is "%{oyun::islem}%":
            send all players title "&aKazanan:" with subtitle "&8%player%."
            set action bar of all players to "&7→ &7Cevap: &8%{oyun::islem}%&7 ←"
            delete {oyun::*}
            give 1 ghast_tear named "&c&lLvL3 &f&lCoin" with lore "&a||&aKullanım Alanı:||&e/Warp Takas" to player

gibi bir şey yapmak istediniz herhalde
yaptığınız oldu ama nedense oyun ekrana gelmiyor
 
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