antrax16 2 Posted November 11, 2016 Share Posted November 11, 2016 Hy . Today i implemented mini game ok event , but i have a problem . When i pres start buton for ok event window is not open and i have this eroor in syserr . â 1111 22:05:50198 :: Traceback (most recent call last): 1111 22:05:50199 :: File "ui.py", line 1048, in CallEvent 1111 22:05:50199 :: File "ui.py", line 88, in __call__ 1111 22:05:50200 :: File "ui.py", line 70, in __call__ 1111 22:05:50200 :: File "uiCards.py", line 87, in __OnStartQuestion 1111 22:05:50201 :: TypeError 1111 22:05:50201 :: : 1111 22:05:50201 :: not enough arguments for format string 1111 22:05:50201 :: The eroor appear after press event start buton . Link to comment Share on other sites More sharing options...
antrax16 2 Posted November 14, 2016 Author Share Posted November 14, 2016 #someone ? Link to comment Share on other sites More sharing options...
sxvoyz 61 Posted November 14, 2016 Share Posted November 14, 2016 Show me yours uicards.py Link to comment Share on other sites More sharing options...
antrax16 2 Posted November 14, 2016 Author Share Posted November 14, 2016 This is it http://pastebin.com/btJikSPR Link to comment Share on other sites More sharing options...
meneleos 305 Posted November 14, 2016 Share Posted November 14, 2016 Locale_game.txt questionDialog.SetText1(localeInfo.MINI_GAME_RUMI_START_QUESTION% (3000, 1)) MINI_GAME_RUMI_START_QUESTION What is 3000? Link to comment Share on other sites More sharing options...
sxvoyz 61 Posted November 14, 2016 Share Posted November 14, 2016 Change that: questionDialog.SetText1(localeInfo.MINI_GAME_RUMI_START_QUESTION % (3000, 1)) To: questionDialog.SetText1("You need %s Yang a %d Cardset to play" % (localeInfo.NumberToMoneyString(3000), 1)) 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