avertuss 48 Posted October 9, 2017 Share Posted October 9, 2017 Hi. I have problem. Syserr: 1009 13:17:39485 :: File "game.py", line 1973, in BINARY_ServerCommand_Run 1009 13:17:39485 :: File "stringCommander.py", line 63, in Run 1009 13:17:39485 :: File "stringCommander.py", line 31, in __call__ 1009 13:17:39485 :: File "stringCommander.py", line 20, in __call__ 1009 13:17:39486 :: File "game.py", line 2098, in staty 1009 13:17:39486 :: File "uiCharacter.py", line 1508, in RefreshStatistic 1009 13:17:39486 :: TypeError 1009 13:17:39486 :: : 1009 13:17:39486 :: an integer is required 1009 13:17:39486 :: 1009 13:17:39486 :: Unknown Server Command staty 0|0|0|0|0|0|0 | staty cmdchat cmdchat("staty "..total_kills.."|"..killed_people.."|"..pc.getqf("killed_mobs").."|"..pc.getqf("killed_bosses").."|"..pc.getqf("killed_metins").."|"..pc.getqf("other_empire").."|"..pc.getqf("same_empire")) python "staty" : self.staty, def staty(self, data): if self.interface.wndCharacter: self.interface.wndCharacter.RefreshStatistic(data.split("|")[0], data.split("|")[1], data.split("|")[2], data.split("|")[3], data.split("|")[4], data.split("|")[5], data.split("|")[6]) def RefreshStatistic(self, a, b, c, d, e, f, g): data = {} data['childs'] = [self.GetChild("kills_value"), self.GetChild("kills_player_value"), self.GetChild("pvm_value"), self.GetChild("boss_value"), self.GetChild("metin_value"), self.GetChild("enemy_value"), self.GetChild("friend_value")] data['stat'] = [a, b, c, d, e, f, g] for i in xrange(xrange(len(data['childs']))): data['childs'][i].SetText("%s" % data['stat'][i]) Any ideas? Link to comment Share on other sites More sharing options...
avertuss 48 Posted October 11, 2017 Author Share Posted October 11, 2017 f5 Link to comment Share on other sites More sharing options...
avertuss 48 Posted October 14, 2017 Author Share Posted October 14, 2017 f5 Link to comment Share on other sites More sharing options...
Den 46 Posted October 17, 2017 Share Posted October 17, 2017 Which line is 1508? Link to comment Share on other sites More sharing options...
avertuss 48 Posted October 17, 2017 Author Share Posted October 17, 2017 24 minuty temu, Den napisał: Which line is 1508? for i in xrange(xrange(len(data['childs']))): Link to comment Share on other sites More sharing options...
Den 46 Posted October 17, 2017 Share Posted October 17, 2017 Just now, avertuss said: for i in xrange(xrange(len(data['childs']))): Try for i in xrange(len(data['childs'])): Link to comment Share on other sites More sharing options...
avertuss 48 Posted October 17, 2017 Author Share Posted October 17, 2017 3 minuty temu, Den napisał: Try for i in xrange(len(data['childs'])): It works. Thanks a lot. 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