antiblock
Elveron
  • Chatbox

    You don't have permission to chat.
    Load More
  • 0
Sign in to follow this  
@Metin2

erro de index

Question

Ola pessoal eu estou tentando acessar meus item no item shop mais ele não me da ao opção do item só de categoria ao clicar na categoria da erro

 

0212 22:33:11189 :: Traceback (most recent call last):

0212 22:33:11189 ::   File "generateInterface.py", line 1486, in CallEvent

0212 22:33:11189 ::   File "generateInterface.py", line 3868, in ClickButton

0212 22:33:11190 ::   File "uiItemShop.py", line 102, in SelectCategory

0212 22:33:11190 ::   File "generateInterface.py", line 4208, in InsertItem

0212 22:33:11190 ::   File "generateInterface.py", line 4083, in SetItem

0212 22:33:11190 ::   File "uiToolTip.py", line 996, in AddItemData

0212 22:33:11190 ::   File "uiToolTip.py", line 1414, in __AdjustMaxWidth

0212 22:33:11190 ::   File "uiToolTip.py", line 1426, in __AdjustAttrMaxWidth

0212 22:33:11190 :: IndexError
0212 22:33:11190 :: : 
0212 22:33:11190 :: list index out of range
0212 22:33:11190 :: 

 

4rDXFyT.png

Share this post


Link to post
Share on other sites

2 answers to this question

  • 0

Se a tua lista é [1,3,6,7], e pediste um elemento da lista 4 ou superior. Por exemplo, se pedires o elemento no index 7, vai dar-te esse erro. Neste caso só podias pedir elementos do 0 ao 3. 

 

Agora, se quiseres respostas mais especificas que isto, convém meteres aqui o código do ficheiro em questão. 

Share this post


Link to post
Share on other sites
antiblock
diamwall
  • 0

pode me especificar qual os código os .py que tenho que ver ?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this