Yardım erorr Offline Shop

  • Konuyu açan Konuyu açan M29
  • Açılış Tarihi Açılış Tarihi
  • Yanıt Yanıt 0
  • Gösterim Gösterim 23
Konu sahibi bu konuda soru soruyor. Sorusu ile ilgili bilgisi olanların yanıtlamasını bekliyor.

M29

Üye
Üye
Mesaj
55
Çözümler
1
Beğeni
24
Puan
414
Ticaret Puanı
0
Hello guys
I have a problem with the offline shop system after I finally found a system that suits my version, but there are some errors in it. Can you help me?

When I put the item in the store and write the price and click on create store, this message appears in the syserr.txt sheet

Python:
Genişlet Daralt Kopyala
1104 22:27:30715 :: offlineshopSendShopCreate : cant get &temp.price.iCheque
1104 22:27:30715 :: Traceback (most recent call last):

1104 22:27:30715 ::   File "ui.py", line 2181, in CallEvent

1104 22:27:30716 ::   File "ui.py", line 88, in __call__

1104 22:27:30716 ::   File "ui.py", line 70, in __call__

1104 22:27:30716 ::   File "uiofflineshop.py", line 1430, in OnCreateShop

1104 22:27:30716 :: TypeError
1104 22:27:30716 :: :
1104 22:27:30716 :: bad argument type for built-in operation
1104 22:27:30716 ::

1104 22:40:53967 :: offlineshopSendShopCreate : cant get &temp.price.iCheque
1104 22:40:53967 :: Traceback (most recent call last):

1104 22:40:53967 ::   File "ui.py", line 2181, in CallEvent

1104 22:40:53967 ::   File "ui.py", line 88, in __call__

1104 22:40:53967 ::   File "ui.py", line 70, in __call__

1104 22:40:53967 ::   File "uiofflineshop.py", line 1430, in OnCreateShop

1104 22:40:53967 :: TypeError
1104 22:40:53967 :: :
1104 22:40:53967 :: bad argument type for built-in operation
1104 22:40:53968 ::

1104 22:40:54214 :: offlineshopSendShopCreate : cant get &temp.price.iCheque
1104 22:40:54214 :: Traceback (most recent call last):

1104 22:40:54214 ::   File "ui.py", line 2181, in CallEvent

1104 22:40:54214 ::   File "ui.py", line 88, in __call__

1104 22:40:54214 ::   File "ui.py", line 70, in __call__

1104 22:40:54214 ::   File "uiofflineshop.py", line 1430, in OnCreateShop

1104 22:40:54214 :: TypeError
1104 22:40:54215 :: :
1104 22:40:54215 :: bad argument type for built-in operation
1104 22:40:54215 ::

The code with the error

Python:
Genişlet Daralt Kopyala
    def OnCreateShop(self):
        if not self.NameEdit.GetText():
            return

        if 0 == len(self.itemStockBuilder):
            return

        itemLst = []
        
        for page in xrange(2):
            for privatePos, (itemWindowType, itemSlotIndex, itemPrice) in self.itemStockBuilder[page].items():
                tupleinfo = (itemWindowType, itemSlotIndex, itemPrice)
                itemLst.append(tupleinfo)
        
        if (len(itemLst) == 0):
            chat.AppendChat(1, "Bo‏ bir maًaza olu‏turamazs‎n‎z")
            return
        
        totaltime = 7200 # 5Days
        
        itemTuple = tuple(itemLst)
        offlineshop.SendShopCreate(self.NameEdit.GetText(), totaltime, itemTuple)
 
Geri
Üst