Tipologie server:pvm
*Resursă folosită:Offline/private shop
*ServerFiles utilizat: /
*Syserr:
1115 08:41:02239 :: Traceback (most recent call last): 1115 08:41:02239 :: File "uiOfflineShopBuilder.py", line 171, in OnUpdate 1115 08:41:02239 :: TypeError 1115 08:41:02239 :: : 1115 08:41:02239 :: 'NoneType' object is not iterable 1115 08:41:02239 :: 1115 08:41:02239 ::
Poză:
[BBvideo=560,315]https://youtu.be/r7suF_Ygc8I[/BBvideo]
*Detalii suplimentare: Can you Help Me?
def OnUpdate(self):
if (not self.vid):
return
if (systemSetting.IsShowSalesText() and systemSetting.IsShowOfflineShop()):
if systemSetting.GetShopNamesRange() == 1.000:
self.Show()
(x, y) = chr.GetProjectPosition(self.vid, 220)
self.SetPosition(x - self.GetWidth() / 2, y - self.GetHeight() / 2)
else:
LIMIT_RANGE = abs(constInfo.SHOPNAMES_RANGE * systemSetting.GetShopNamesRange())
(to_x, to_y, to_z) = chr.GetPixelPosition(self.vid)
(my_x, my_y, my_z) = player.GetMainCharacterPosition()
if abs(my_x - to_x) <= LIMIT_RANGE and abs(my_y - to_y) <= LIMIT_RANGE:
(x, y) = chr.GetProjectPosition(self.vid, 220)
self.SetPosition(x - self.GetWidth() / 2, y - self.GetHeight() / 2)
self.Show()
else:
self.Hide()
self.SetPosition(-70, 0)
name = chr.GetNameByVID(self.vid)
if str(name) in constInfo.PAZAR_BAKILDI:
if str(self.baslik).find("^") != -1:
self.textLine_Bakildi.SetText(str(constInfo.RENKLER["SARI"])+self.baslik[1:])
else:
self.textLine_Bakildi.SetText(str(constInfo.RENKLER["SARI"])+self.baslik)
self.textLine_Bakildi.Show()
self.textLine.Hide()
else:
if str(self.baslik).find("^") != -1:
self.textLine.SetText(self.baslik[1:])
self.textLine.Show()
self.textLine_Bakildi.Hide()
else:
self.textLine.SetText(self.baslik)
self.textLine.Show()
self.textLine_Bakildi.Hide()
else:
for key in g_offlineShopAdvertisementBoardDict.keys():
g_offlineShopAdvertisementBoardDict[key].Hide()



