[HELP PLEASE] Oto MadenEventi

zM4xwellou

Sudan Çıkmış
En iyi cevaplar
0
Kod:
Command /MadenEventi:
    Permission: MadenEvent.Klasik
    Trigger:
        Send "<Aqua>Maden Eventi 1 Dakika Icinde Basliyacaktir!" To All Players
        Send "<Aqua>Lufen Herkes /Warp MadenEventi'ne Gelsin!" To All Players
        wait 40 Seconds
        Send "<Aqua> Son 20 Saniye" To All Players
        Wait 10 Seconds
        Send "<Aqua>Son 10 Saniye" To All Players
        Wait 5 Seconds
        Send "<Aqua>Son 5 Saniye" To All Players
        Wait 1 Second
        Send "<Aqua>Son 4 Saniye" To All Players
        Wait 1 Second
        Send "<Aqua>Son 3 Saniye" To All Players
        Wait 1 Second
        Send "<Aqua>Son 2 Saniye" To All Players
        Wait 1 Second
        Send "<Aqua>Son 1 Saniye" To All Players
        Wait 1 Second
        Send "&3Maden Eventi Basladi!" To All Players
        Execute Console Command "/Region Flag meventic Build Allow"
        Wait 5 Minutes
        Execute Console Command "/Region Flag meventic Build Deny"
        Execute Console Command "/Mrl Reset MadenEventi"
        Send "<Gold>Maden Eventi Sona Ermistir." To All Players
        Send "<Aqua>Herkese iyi oyunlar dileriz!" To All Players
        Wait 5 seconds
        Execute Console Command "/st"
Herkese iyi forumlar!
Sunucum için otomatik maden eventi skripti yazdım fakat hata veriyor. Problem sanırım [TAB]'larda. Yardımcı olursanız sevinirim.
 
Son düzenleme:

zM4xwellou

Sudan Çıkmış
En iyi cevaplar
0
bu kısımdaki WgAd değişkenini ayarladın mı?
Orayı değiştirdim ama yinede hata veriyor.
Kodun şuanki hali;
Kod:
Command /MadenEventi:
    Permission: MadenEvent.Klasik
    Trigger:
        Send "<Aqua>Maden Eventi 1 Dakika Icinde Basliyacaktir!" To All Players
        Send "<Aqua>Lufen Herkes /Warp MadenEventi" To All Players
        wait 40 Seconds
        Send "<Aqua> Son 20 Saniye" To All Players
        Wait 10 Seconds
        Send "<Aqua>Son 10 Saniye" To All Players
        Wait 5 Seconds
        Send "<Aqua>Son 5 Saniye" To All Players
        Wait 1 Second
        Send "<Aqua>Son 4 Saniye" To All Players
        Wait 1 Second
        Send "<Aqua>Son 3 Saniye" To All Players
        Wait 1 Second
        Send "<Aqua>Son 2 Saniye" To All Players
        Wait 1 Second
        Send "<Aqua>Son 1 Saniye" To All Players
        Wait 1 Second
        Send "&3Maden Eventi Basladi!" To All Players
        Execute Console Command "/Region Flag meventic Build Allow"
        Wait 5 Minutes
        Execute Console Command "/Region Flag meventic Build Deny"
        Execute Console Command "/Mrl Reset MadenEventi"
        Send "<Gold>Maden Eventi Sona Ermistir." To All Players
        Send "<Aqua>Herkese iyi oyunlar dileriz!" To All Players
        Wait 5 seconds
        Execute Console Command "/st"

indentation error: expected 4 spaces, but found 1 tab (madenkevent.sk, line 3: Trigger:')
Gibi hatalar veriyor.
 

Admicos

Nether Yerlisi
En iyi cevaplar
1
trigger'ı küçük harfle yaz
24, 25, 26ncı satırlarda 8 boşluk koymuşsun 4 boşluk olacak
27, 28, 29'uncu satırlarda iki tab yerine koymuşsun. 4 boşluk olacak
 

zM4xwellou

Sudan Çıkmış
En iyi cevaplar
0
Olmuyor. Sürekli line hatası veriyor.

Problemi buldum. Skripti editlerken "Notepad+" programını kullanıyorum. Editlerken TAB'a bastigimda skript o boslukları tab olarak okuyor ve hata veriyor. "expectted 8 spaces, but found 2 tabs" yazıyor hatalardada. Notepad+ programıyla o skripti tekrar açıp tabları silip teker teker boşluk atmak zorunda kaldım ve sorun düzeldi.
Notepad+'yı nasıl düzeltebilirim. Her skriptte böyle teker teker bosluk koymak cok zor :(
 

Bartuzen

Bedrock Kaşifi
En iyi cevaplar
0
Olmuyor. Sürekli line hatası veriyor.

Problemi buldum. Skripti editlerken "Notepad+" programını kullanıyorum. Editlerken TAB'a bastigimda skript o boslukları tab olarak okuyor ve hata veriyor. "expectted 8 spaces, but found 2 tabs" yazıyor hatalardada. Notepad+ programıyla o skripti tekrar açıp tabları silip teker teker boşluk atmak zorunda kaldım ve sorun düzeldi.
Notepad+'yı nasıl düzeltebilirim. Her skriptte böyle teker teker bosluk koymak cok zor :(
Kodda hem tab hem de boşluk kullanmışsın. Her 4 boşluk yerine 1 tab kullan.
 

ForcEmir

Elmas Madencisi
En iyi cevaplar
0
Kod:
command /madeneventi:
    permission: lctr.madenevent
    trigger:
        send "&bMaden Eventi 1 Dakika Icinde Baslicaktir !" to all players
        wait 40 seconds
        send "&bMaden Eventi 20 Saniye Icinde Baslicaktir !" to all players
        wait 10 seconds
        send "&bMaden Eventine Son 10 Saniye !" to all players
        wait 5 seconds
        send "&bMaden Eventine Son 5 Saniye !" to all players
        wait 1 seconds
        send "&bMaden Eventine Son 4 Saniye !" to all players
        wait 1 seconds
        send "&bMaden Eventine Son 3 Saniye !" to all players
        wait 1 seconds
        send "&bMaden Eventine Son 2 Saniye !" to all players
        wait 1 second
        send "&bMaden Eventine Son 1 Saniye !" to all players
        wait 1 second
        send "&bMaden Eventi Baslamistir !" to all players
        wait 1 second
        execute player command "rg flag wgadi build allow"
        wait 2 minutes
        send "&bMaden Eventinin Bitmesine 2 Dakika Kaldi !" to players
        wait 1 minutes
        send "&bMaden Eventinin Bitmesine 1 Dakika Kaldi !" to players
        wait 30 second
        send "&bMaden Eventinin Bitmesine 30 Saniye Kaldi !" to players
        wait 20 second
        send "&bMaden Eventinin Bitmesine 10 Saniye Kaldi !" to players
        wait 5 second
        send "&bMaden Eventinin Bitmesine 5 Saniye Kaldi" to players
        wait 5 second
        send "&bMaden Eventi Bitmistir !" to players
        wait 1 second
        execute player command "rg flag wgadi build deny"
        send "&bMaden Eventi Bitmistir Katilan Herkese Tesekkurler !" to players
        execute player command "mrl reset MadenEventi"

Hata çıkarsa yaz
 
Üst