Jump to content

Question about python


Recommended Posts

  • Premium

I have it like this: 

 

test replace with PetProcentExp

def _GameWindow__PetExp(self, PetProcentExp):
self.PetExpLabel.SetText(float(PetProcentExp[:PetProcentExp.find('.')+3]) + "%")
self.PetExpBar.SetPercentage(PetProcentExp, 100)

syserr:

unsupported operand types for +: 'float' and 'str'
Link to comment
Share on other sites

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.