Çözüldü Skript Else has to be placed just after an "if" or "else if" section hatası

  • Konuyu Başlatan Konuyu Başlatan erhan1209
  • Başlangıç tarihi Başlangıç tarihi
  • Görüntüleme 558

erhan1209

Fırında Isıttığım İlk Taş
Katılım
24 Haziran 2020
Mesajlar
91
Elmaslar
4
Puan
3.795
Minecraft
erhan1209

Discord:

erhan1209

Skript:
Kod:
command "/go [<PLAYER>]":
    permission: admin.go
    permission message: Bilinmeyen komut.
    trigger:
        if arg 1 is set:
        if arg 1 is player:
        set {sunucu.%arg-1%} to arg 1's world
        if event-world is "lobi":   
        if {sunucu.%arg-1%} is "1" or "2" or "3":
        clear player's inventory
        execute console command "mvtp %{sunucu.%arg-1%}%"
        wait 5 tick
        execute console command "tp %player% %arg-1%"
        else:
        message "&cLütfen bir oyuncu ismi girin."
        else:
        message "&cBöyle bir oyuncu bulunamadı."
        else:
        execute player command "hub"
        clear player's inventory
        execute console command "mvtp %player% %{sunucu.%arg-1%}%"
skript

Else has to be placed just after an "if" or "else if" section​

hatası veriyor
 
Kod:
if {sunucu.%arg-1%} is "1" or "2" or "3":
        clear player's inventory
        execute console command "mvtp %{sunucu.%arg-1%}%"
        wait 5 tick
        execute console command "tp %player% %arg-1%"

Eğer bu değilse
Kod:
else:
        execute player command "hub"
        clear player's inventory
        execute console command "mvtp %player% %{sunucu.%arg-1%}%"
bunun mu çalışmasını istiyorsunuz?
 
Else(Değilse)'den sonra if(eğer) gelmesi gerek diye biliyorum.
 
Son düzenleme:
skripti yapmaktan vazgeçtim
tp ile halledebiliyoruz zaten
 

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