Can't get user variables update message~
Posted: 26 Jun 2012, 17:23
hello~~~here is my server code~~~
and client code
it's a zone extension, on server side, it works all right, and user's nick update success, but client had never received variables update message~~I do something wrong?
thanks a lot
Code: Select all
try {
dbManager.executeUpdate(sql, sqlPara);
List<UserVariable> variables = new ArrayList<UserVariable>();
variables.add(new SFSUserVariable(Constans.PLAYER_NICK, newNick));
getApi().setUserVariables(sender, variables, true, false);
} catch (SQLException e) {
trace("modify nick error:"+ e.getMessage());
}
Code: Select all
sfs.addEventListener(SFSEvent.USER_VARIABLES_UPDATE, onUserVariablesUpdate);
private function onUserVariablesUpdate(e:SFSEvent):void
{
trace("user variables update" + (e.params.changedVars as Array));
trace("user nick:" + user.id);
}
thanks a lot