Hi there,
Can i access user variables in server side...? If yes means how to access user variable..?
i used the following code to access user variable...
var muzzled = userObj.getVariable("muzzled"); // It returns something like it.gotoAndPlay.smartfox.
But i want to get the actual variable i set....What to do..?
Thanks,
Palanisamy
user variable
- cemuzunlar
- Posts: 47
- Joined: 26 Dec 2008, 00:45
- Contact:
From the docs:
http://www.smartfoxserver.com/docs/docPages/serverSideApi/index.htm
var = userObj.getVariable(name) will return the variable as a UserVariable object
Then, you should call:
var.getValue();
http://www.smartfoxserver.com/docs/docPages/serverSideApi/index.htm
var = userObj.getVariable(name) will return the variable as a UserVariable object
Then, you should call:
var.getValue();
Cem Uzunlar
Infosfer Game and Visualization Technologies
http://www.infosfer.com
contact@infosfer.com
Infosfer Game and Visualization Technologies
http://www.infosfer.com
contact@infosfer.com
Return to “SmartFoxServer 1.x Discussions and Help”
Who is online
Users browsing this forum: No registered users and 52 guests