Jump to content

an integer is required cmdchat


Recommended Posts

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

  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

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.