[SK]Yardım

AleksKafası

Sudan Çıkmış
En iyi cevaplar
0
Sunucumda nasıl fix all ve repair all komudunu nasıl 1 dakikada 1 yazmalarını saglayabiliriz. skriptini yazabilecek varmı.Teşekkürler
 

PwParadox

Konun için düşüncem profil kapağımda
En iyi cevaplar
0
bu sana yardım edebilir.
Kod:
command /repairall:
   trigger:
     if {bekleme.%player%} is false:
       repair tool of all players
       set {bekleme.%player%} to true
       wait a minute
       set {bekleme.%player%} to false
     else:
       send "&4 1 dakika beklemeniz gerekiyor"
variables:
   {bekleme.%player%} = false
 
Son düzenleme:

AleksKafası

Sudan Çıkmış
En iyi cevaplar
0
Kod:
[19:56:31] [Server thread/ERROR]: indentation error: expected 8 spaces, but found 12 spaces (tamirci.sk, line 4: repair tool of all players')
[19:56:31] [Server thread/ERROR]: indentation error: expected 8 spaces, but found 12 spaces (tamirci.sk, line 5: set {bekleme.%player%} to true')
[19:56:31] [Server thread/ERROR]: indentation error: expected 8 spaces, but found 12 spaces (tamirci.sk, line 6: wait 60 seconds')
[19:56:31] [Server thread/ERROR]: indentation error: expected 8 spaces, but found 12 spaces (tamirci.sk, line 7: set {bekleme.%player%} to false')
[19:56:31] [Server thread/ERROR]: 'if {bekleme.%player%}' is not an entity type (tamirci.sk, line 3: if {bekleme.%player%} is false')
[19:56:31] [Server thread/ERROR]: 'else' has to be placed just after an 'if' or 'else if' section (tamirci.sk, line 8: else:')
[19:56:31] [Server thread/INFO]: Loaded 8 scripts with a total of 15 triggers and 8 commands in 0.66 seconds
[19:56:31] [Server thread/INFO]: [0;37;22m[[0;33;22mSkript[0;37;22m][m [0;31;22mEncountered 7 errors while reloading the config and all scripts![m
hata verdi skript
 

PwParadox

Konun için düşüncem profil kapağımda
En iyi cevaplar
0
Kod:
[19:56:31] [Server thread/ERROR]: indentation error: expected 8 spaces, but found 12 spaces (tamirci.sk, line 4: repair tool of all players')
[19:56:31] [Server thread/ERROR]: indentation error: expected 8 spaces, but found 12 spaces (tamirci.sk, line 5: set {bekleme.%player%} to true')
[19:56:31] [Server thread/ERROR]: indentation error: expected 8 spaces, but found 12 spaces (tamirci.sk, line 6: wait 60 seconds')
[19:56:31] [Server thread/ERROR]: indentation error: expected 8 spaces, but found 12 spaces (tamirci.sk, line 7: set {bekleme.%player%} to false')
[19:56:31] [Server thread/ERROR]: 'if {bekleme.%player%}' is not an entity type (tamirci.sk, line 3: if {bekleme.%player%} is false')
[19:56:31] [Server thread/ERROR]: 'else' has to be placed just after an 'if' or 'else if' section (tamirci.sk, line 8: else:')
[19:56:31] [Server thread/INFO]: Loaded 8 scripts with a total of 15 triggers and 8 commands in 0.66 seconds
[19:56:31] [Server thread/INFO]: [0;37;22m[[0;33;22mSkript[0;37;22m][m [0;31;22mEncountered 7 errors while reloading the config and all scripts![m
hata verdi skript
sayfayı yenile ve tekrar kopyala yapıştır :D minik bir hata yapmışım
 

Blueyescat

Bedrock Kaşifi
En iyi cevaplar
0
Bunu dene bana ait değil düzenledim biraz:

Kod:
command /repair:
    aliases: /fix
    trigger:
        {cooldown.%player%} is set:
            difference between {cooldown.%player%} and now is less than 1 minutes:
                send "&6Bu komutu kullanmak icin bekle: &c%difference between {cooldown.%player%} and now%" to player
                stop trigger
        set {cooldown.%player%} to now
Linki görebilmek için üye olmanız gerekiyor. Giriş yap veya üye ol.
 
Son düzenleme:

AleksKafası

Sudan Çıkmış
En iyi cevaplar
0
Hepinize teşekkür ederim deneyecegim

@Blueyescat hata veriyor:
[20:22:38] [Server thread/ERROR]: '/repair' is not a text (tamirci.sk, line 1: on command /repair:')
[20:22:38] [Server thread/INFO]: Loaded 2 scripts with a total of 1 trigger and 2 commands in 0.59 seconds
[20:22:38] [Server thread/INFO]: [0;37;22m[[0;33;22mSkript[0;37;22m][m [0;31;22mEncountered 1 error while reloading the config and all scripts![m

@TheMissingLink buda hata veriyor:
[20:25:03] [Server thread/ERROR]: [Skript] indentation error: expected 6 spaces, but found 5 spaces (tamirci2.sk, line 3: if {bekleme.%player%} is false:')
[20:25:03] [Server thread/ERROR]: [Skript] indentation error: expected 6 spaces, but found 7 spaces (tamirci2.sk, line 4: repair tool of all players')
[20:25:03] [Server thread/ERROR]: [Skript] indentation error: expected 6 spaces, but found 7 spaces (tamirci2.sk, line 5: set {bekleme.%player%} to true')
[20:25:03] [Server thread/ERROR]: [Skript] indentation error: expected 6 spaces, but found 7 spaces (tamirci2.sk, line 6: wait a minute')
[20:25:03] [Server thread/ERROR]: [Skript] indentation error: expected 6 spaces, but found 7 spaces (tamirci2.sk, line 7: set {bekleme.%player%} to false')
[20:25:03] [Server thread/ERROR]: [Skript] indentation error: expected 6 spaces, but found 5 spaces (tamirci2.sk, line 8: else:')
[20:25:03] [Server thread/ERROR]: [Skript] indentation error: expected 6 spaces, but found 7 spaces (tamirci2.sk, line 9: send "&4 1 dakika beklemeniz gerekiyor"')
[20:25:03] [Server thread/WARN]: [Skript] Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (tamirci2.sk, line 2: trigger:')
[20:25:03] [Server thread/INFO]: [Skript] Loaded 2 scripts with a total of 1 trigger and 3 commands in 0.72 seconds
 

PwParadox

Konun için düşüncem profil kapağımda
En iyi cevaplar
0
Hepinize teşekkür ederim deneyecegim

@Blueyescat hata veriyor:
[20:22:38] [Server thread/ERROR]: '/repair' is not a text (tamirci.sk, line 1: on command /repair:')
[20:22:38] [Server thread/INFO]: Loaded 2 scripts with a total of 1 trigger and 2 commands in 0.59 seconds
[20:22:38] [Server thread/INFO]: [0;37;22m[[0;33;22mSkript[0;37;22m][m [0;31;22mEncountered 1 error while reloading the config and all scripts![m

@TheMissingLink buda hata veriyor:
[20:25:03] [Server thread/ERROR]: [Skript] indentation error: expected 6 spaces, but found 5 spaces (tamirci2.sk, line 3: if {bekleme.%player%} is false:')
[20:25:03] [Server thread/ERROR]: [Skript] indentation error: expected 6 spaces, but found 7 spaces (tamirci2.sk, line 4: repair tool of all players')
[20:25:03] [Server thread/ERROR]: [Skript] indentation error: expected 6 spaces, but found 7 spaces (tamirci2.sk, line 5: set {bekleme.%player%} to true')
[20:25:03] [Server thread/ERROR]: [Skript] indentation error: expected 6 spaces, but found 7 spaces (tamirci2.sk, line 6: wait a minute')
[20:25:03] [Server thread/ERROR]: [Skript] indentation error: expected 6 spaces, but found 7 spaces (tamirci2.sk, line 7: set {bekleme.%player%} to false')
[20:25:03] [Server thread/ERROR]: [Skript] indentation error: expected 6 spaces, but found 5 spaces (tamirci2.sk, line 8: else:')
[20:25:03] [Server thread/ERROR]: [Skript] indentation error: expected 6 spaces, but found 7 spaces (tamirci2.sk, line 9: send "&4 1 dakika beklemeniz gerekiyor"')
[20:25:03] [Server thread/WARN]: [Skript] Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (tamirci2.sk, line 2: trigger:')
[20:25:03] [Server thread/INFO]: [Skript] Loaded 2 scripts with a total of 1 trigger and 3 commands in 0.72 seconds
Soldaki her boşluktan 1 tane sil hata koddan değil boşluklardan kaynaklanıyor çünkü ben denemiştim
 

Blueyescat

Bedrock Kaşifi
En iyi cevaplar
0
@iZeckGH Alakası yok, on command Yapmışım, on olmayacaktı.

Edit:
İyi olduda skript essentials komutunun çalışmasını engelledi. Sen hata veriyor diyince ben yanlış anladım galiba :D

Neyse bu kod çalışıyor düzgünce:
Kod:
command /repair:
    trigger:
        set {cooldown} to difference between {cooldown.%player%} and now
        if {cooldown} is less than 1 minutes:
            send "&6Itemini tamir etmek icin &c%difference between 1 minutes and {cooldown}% &6bekle!" to player
        else:
            repair tool of player
            set {cooldown.%player%} to now
 
Son düzenleme:
Üst