Jump to content

Shop Search System (No ItemIndex!) Problem


Recommended Posts

  • Active+ Member

Hello, search results are listed in the search system, but when I click "Mark" or "Buy", "No ItemIndex!" I'm getting the warning.

Does anyone have an idea?

 

	def BuySelectedItem(self):
		if self.selectedItemIndex == -1:
			chat.AppendChat(chat.CHAT_TYPE_INFO, "No ItemIndex!")
			return
			
		shopVid = self.searchResultItems[self.selectedItemIndex].GetShopVid()
		shopItemPos = self.searchResultItems[self.selectedItemIndex].GetShopItemPos()
		net.SendPrivateShopSerchBuyItem(shopVid, shopItemPos)

 

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.