Fazer 704 Posted May 3, 2018 Share Posted May 3, 2018 Hello. then i try to separate items i get the money window and dont work. Syser: 0504 02:49:45004 :: File "ui.py", line 1016, in CallEvent 0504 02:49:45005 :: File "ui.py", line 87, in __call__ 0504 02:49:45005 :: File "ui.py", line 69, in __call__ 0504 02:49:45005 :: File "uiPickMoney.py", line 179, in OnAccept 0504 02:49:45005 :: File "ui.py", line 87, in __call__ 0504 02:49:45006 :: File "ui.py", line 78, in __call__ 0504 02:49:45006 :: TypeError 0504 02:49:45006 :: : 0504 02:49:45006 :: OnPickItem() takes exactly 2 arguments (3 given) So I fix it by creating a code. uipickmoney.py Search : if cheque > 0 or money > 0 : if self.eventAccept: self.eventAccept(money, cheque) Replace with: if cheque > 0 or money > 0 : if self.eventAccept: if cheque == 0 : self.eventAccept(money) else: self.eventAccept(money, cheque) Link to comment Share on other sites More sharing options...
Premium WeedHex 636 Posted May 4, 2018 Premium Share Posted May 4, 2018 EDT Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now