SmartFox ver 1.6.6
If I use customLogin=true then I try to use setUserVariables = TypeError: Error #1009:
Im use setUserVariables ONLY AFTER JOIN ROOM.
And i use _sfs.myUserId and _sfs.myUserName(I trace it).
If i change customLogin to "false" int WOKRS AGAIN !
This is the code:
var params:Object = new Object();
params.posX = avatar.x;
params.posY = avatar.y;
params.firstTime = false;
trace('MY USER NAME = ' + _sfs.myUserName);
trace('MY USER Id = ' + _sfs.myUserId);
_sfs.setUserVariables(params);
I try also this code from Example
var uVars = new Object()
uVars.myAvatar = "Homer"
uVars.posx = 100
uVars.posy = 200
_sfs.setUserVariables(uVars)
But it not works too.
customLogin + setUserVariables
- kotbegemot
- Posts: 82
- Joined: 21 Nov 2010, 05:05
- Location: Saint-Petersburg
- kotbegemot
- Posts: 82
- Joined: 21 Nov 2010, 05:05
- Location: Saint-Petersburg
Return to “SmartFoxServer 1.x Discussions and Help”
Who is online
Users browsing this forum: No registered users and 43 guests