Please see below:
http://docs2x.smartfoxserver.com/api-do ... Index.html
Sfs2X.Requests Namespace->
SetUserVariablesRequest Class->
SetUserVariablesRequest Constructor->
----------------------------------------------------------------------------------
Example #1 Shows how set a number of User variables
List<UserVariable> userVars = new List<UserVariable>();
roomVars.Add( new SFSUserVariable("avatarType", "SwedishCook") );
roomVars.Add( new SFSUserVariable("country", "Sweden") );
roomVars.Add( new SFSUserVariable("x", 10) );
roomVars.Add( new SFSUserVariable("y", 5) );
smartFox.Send ( new SetUserVariablesRequest(userVars) );
----------------------------------------------------------------------------------
The userVars defined but it replaced by word:"roomVars" same as the Samples in "SetRoomVariablesRequest Constructor"
tks!
i found a little wrong in sfs2X api doc
-
- Posts: 1297
- Joined: 14 Mar 2008, 07:52
- Location: Sweden
-
- Posts: 1297
- Joined: 14 Mar 2008, 07:52
- Location: Sweden
Who is online
Users browsing this forum: No registered users and 28 guests