Page 1 of 1

PlayerInfo from UserID on Player Connect

Posted: Mon Feb 16, 2015 1:00 am
by petros789
Currently I have the following code that attempts to get a players info when they connect to the server:

Syntax: Select all

def player_connect(game_event):
print("Player Connect")
userid = game_event.get_int('userid')
print("userid: %s" % userid)

playerinfo = playerinfo_from_userid(userid)
print("playerinfo: %s" % playerinfo)


But when playerinfo_from_userid(userid) is called I get the error "ValueError: Conversion failed..." and I'm unsure why. Any help would be greatly appreciated!

Posted: Mon Feb 16, 2015 1:04 am
by L'In20Cible