Page 1 of 1

Can't get user variables update message~

Posted: 26 Jun 2012, 17:23
by king3200
hello~~~here is my server code~~~

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());
		}
and client code

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);
		}
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

Re: Can't get user variables update message~

Posted: 26 Jun 2012, 18:26
by rjgtav
Hi.
Are you using the latest server patch (2.1.0) alongisde with the latest AS3 Client API (1.0.3)?
And to the other users in the same room receive the variables update event?