Kod sorunu

xEndlessV2

Elmas Madencisi
En iyi cevaplar
0
Skript'in bugumudur,ram yetersizliğimidir bilmiyorum ancak kod yana doğru ne kadar uzarsa sk reload atarken sunucuyu o kadar hızlı çökertiyor.
Kod:
if player has diamond boots or diamond or diamond chestplate or diamond leggings or diamond helmet:
Bu kodu ne kadar uzatırsam çökme ihtimalı o kadar büyüyor.Kit belirleme skriptini yazamıyorum bunun yüzünden,çözümü nedir?

Not:Bu şekilde olmasada bundan daha zor ve büyük skriptler var sunucumda,ancak onlarla çökmüyor.
 

Umut Savas

Ne demek yanlış? Ben mi?
En iyi cevaplar
0
Bug Değildir. Buna Engel Deniyor Benim Proxydede Oluyor
işleyemiyor galiba :D
 

ensiha

Bratackk <3
En iyi cevaplar
0
Ben Bu Şekilde Çözüyorum Bunları Başka Yolu Varmı Bilmiyorum Metin2 Skriptimdede Böyle Yapmıştım

PHP:
options:
    asd: diamond boots or diamond or diamond chestplate
    asd2: or diamond leggings or diamond helmet

command /asd:
    trigger:
        if player has {@asd} {@asd2}:
            send "asd"
Senin Attıgın Kod O Kadar Uzun Degil Sıkıntı Olmaz Benim Yaptıklarım Çok Fazla Uzun Oldugundan Dolayı Sk Reload Yazınca Skript Plugini Error Veriyor

Umarım Bu Sorunun Cevabıdır :D
 

xEndlessV2

Elmas Madencisi
En iyi cevaplar
0
Benim yazdığım şey bi kitbelirleme skripti,oyuncuların kendine özel kiti olması için yani.
Bu kite kaydedilmemesi gereken şeyleri bu yöntemle yapıyorum ancak kod uzadıkca reloadı zorluyor ve çöküyor sunucu.
Skripti silmediğim sürecede servere giriş olmuyor.
Ram miktarım 4 gb,sanırım addonlarda bi sıkıntı var.

Kod:
options:
    sahiolduklari: if player has diamond helmet or diamond chstplate or diamond leggings or diamond boots or iron helmet of protection 1 or iron helmet of protection 2 or iron helmet of protection 3 or iron helmet of protection 4 or iron chestplate of protection 1
Kodu bu kadar uzattığımda çöküyor ve dediklerim oluyor,ilerisinde ne olur acaba :D
 

ensiha

Bratackk <3
En iyi cevaplar
0
Benim yazdığım şey bi kitbelirleme skripti,oyuncuların kendine özel kiti olması için yani.
Bu kite kaydedilmemesi gereken şeyleri bu yöntemle yapıyorum ancak kod uzadıkca reloadı zorluyor ve çöküyor sunucu.
Skripti silmediğim sürecede servere giriş olmuyor.
Ram miktarım 4 gb,sanırım addonlarda bi sıkıntı var.

Kod:
options:
    sahiolduklari: if player has diamond helmet or diamond chstplate or diamond leggings or diamond boots or iron helmet of protection 1 or iron helmet of protection 2 or iron helmet of protection 3 or iron helmet of protection 4 or iron chestplate of protection 1
Kodu bu kadar uzattığımda çöküyor ve dediklerim oluyor,ilerisinde ne olur acaba :D
Tek Çözüm Böyle Sanırsam :D
PHP:
options:
   asd1: diamond helmet or diamond chestplate or diamond leggings
   asd2: diamond boots or iron helmet of protection 1 or iron helmet of protection 2
   asd3: iron helmet of protection 2 or iron helmet of protection 3
   asd4: iron helmet of protection 4 or iron chestplate of protection 1

command /asd:
    trigger:
        if player has {@asd1}:
            if player has {@asd2}:
                if player has {@asd3}:
                    if player has {@asd4}:
                        send "asd"
Not: options yapmana gerek sanırım ben daha net olsun diye optionslu yaptım
Denedim Bu Şekilde Çökmedi
 

xEndlessV2

Elmas Madencisi
En iyi cevaplar
0
Ama bu şöyle olmuyormu,birine sahipse diğerine sahip olup olmadığını kontrol ediyor galiba?
 

ensiha

Bratackk <3
En iyi cevaplar
0
Ama bu şöyle olmuyormu,birine sahipse diğerine sahip olup olmadığını kontrol ediyor galiba?
Aynen Öyle Oluyor asd1 varsa asd2 yi kontrol eder tarzı

Eğer Hepsini Kontrol Ettirmek İstiyorsan
PHP:
options:
   asd1: diamond helmet or diamond chestplate or diamond leggings
   asd2: diamond boots or iron helmet of protection 1 or iron helmet of protection 2
   asd3: iron helmet of protection 2 or iron helmet of protection 3
   asd4: iron helmet of protection 4 or iron chestplate of protection 1

command /asd:
    trigger:
        if player has {@asd1}:
            send "Sende ASd1 Lerden Birisi Var"
        if player has {@asd2}:
            send "Sende ASd2 Lerden Birisi Var"
        if player has {@asd3}:
            send "Sende Asd3 Lerden Birisi Var"
        if player has {@asd4}:
            send "Sende Asd4 Lerden Birisi Var"

Eğer asd1 Varsa Asd2 Ye Geçmesin
Yada
Asd1 yoksa ASd2 yoksa Asd3 Varsa ASd4 Geçmesin

PHP:
options:
   asd1: diamond helmet or diamond chestplate or diamond leggings
   asd2: diamond boots or iron helmet of protection 1 or iron helmet of protection 2
   asd3: iron helmet of protection 2 or iron helmet of protection 3
   asd4: iron helmet of protection 4 or iron chestplate of protection 1

command /asd:
    trigger:
        if player has {@asd1}:
            send "Sende ASd1 Lerden Birisi Var"
            stop
        if player has {@asd2}:
            send "Sende ASd2 Lerden Birisi Var"
            stop
        if player has {@asd3}:
            send "Sende Asd3 Lerden Birisi Var"
            stop
        if player has {@asd4}:
            send "Sende Asd4 Lerden Birisi Var"
            stop
Bu Şöyle Oluyor Hangisi Varsa Orda Mesaj Atıp Durduruyor Mesela 3 Varsa 1-2 De Mesaj Atmaz 3 De Mesaj Atar Ve 4 Ü Kontrol Etmez
 
Üst