Jump to content

Recommended Posts

hi guys, lets say i have this button x , when i press x i want to display msg fail if the item broke or (else)  msg succes if the item dont broke, but every time i get the same msg fail.

Does not matter if the object succeeds or not i get the fail msg.

How can i make this function to display succes when the item dont broke?

def test(self, PopupMessage):
            if PopupMessage:
                self.PopupMessage(localeInfo.BIO_FAIL) // msg say fail
            else:
                self.PopupMessage(localeInfo.BIO_SUC) // msg sa succes

 

Ty for help

 

Link to comment
https://metin2.dev/topic/19526-if-and-else/
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

  • Active+ Member
def __ClickSystemButton(self, func):
		try:
			if func == 1:
				self.Dosonthing()
			elif func == 2:
				self.PopupMessage(localeInfo.BIO_FAIL) // msg say fail
		except:
			import exception
			exception.Abort("SystemDialog.__LoadSystem.__ClickSystemButton")

 

Link to comment
https://metin2.dev/topic/19526-if-and-else/#findComment-106201
Share on other sites

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.