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?
'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