0 Yang İtemlere [Ücretsiz] Etiketi

MEKA

Discord: mekaprojects
Süper Moderatör
Premium Üye
Grafiker
Geliştirici
Yardımsever Üye
Editör
Mesaj
2.779
Çözümler
287
Beğeni
2.023
Puan
1.850
Ticaret Puanı
2
Root > uitooltip.py

Aratılır
Python:
def AppendPrice(self, price):
Kod bloğu komple değiştirilir
Python:
    def AppendPrice(self, price):
        self.AppendSpace(3)
        if price<1:
            self.AppendTextLine(localeInfo.NPC_0YANG_UCRETSIZ,self.POSITIVE_COLOR)
        else:
            self.AppendTextLine(localeInfo.TOOLTIP_BUYPRICE  % (localeInfo.NumberToMoneyString(price)), self.GetPriceColor(price))

Locale_tr > locale_game.txt
En alta ekle (kodu en alta ekledikten sonra 1 adet boş satır bırakın.)
Kod:
NPC_0YANG_UCRETSIZ    [Ücretsiz]
 
error 'module' object has no attribute 'error' , locale_game.txt ile ilgili bi hata veriyor sebebi ne olabilir ?
 
Birde ücretli yazdırmak istiyorsanız aşağıdaki gibi yapabilirsiniz


Python:
  def AppendPrice(self, price):

        self.AppendSpace(3)

        if price<1:

            self.AppendTextLine(localeInfo.NPC_0YANG_UCRETSIZ,self.POSITIVE_COLOR)

        else if price>1:

            self.AppendTextLine(localeInfo.UCRETLI_ITEMLER,self.POSITIVE_COLOR)

        else:

            self.AppendTextLine(localeInfo.TOOLTIP_BUYPRICE  % (localeInfo.NumberToMoneyString(price)), self.GetPriceColor(price))

Eklenecek

UCRETLI_ITEMLER [Ücretli]

İllede locale game veya locale interfaceye birşeyler eklemek zorunda değilsiniz şöyle yapsanızda olur


Python:
 def AppendPrice(self, price):

        self.AppendSpace(3)

        if price<1:

            self.AppendTextLine("Yazacaginiz yaziyi buraya girin",self.POSITIVE_COLOR)

        else if price>1:

            self.AppendTextLine("Yazacaginiz yaziyi buraya girin",self.POSITIVE_COLOR)

        else:

            self.AppendTextLine("Yazacaginiz yaziyi buraya girin"  % (localeInfo.NumberToMoneyString(price)), self.GetPriceColor(price))

Kolay gelsin.
 
En son bir moderatör tarafından düzenlenmiş:
Geri
Üst