Not sure why... but setUserVariables is undefined? I see people using this everywhere and it works for them.... here is my error message :
2006/02/27 16:54:01.453 - [ WARNING ] [id: 17] (JavascriptExtension.logASError): Error in extension [ simpleExt.as ]: TypeError: setUserVariables is not a function. (simpleExt.as#811) Line: 122
and here is part of my code :
function handleRequest(cmd, params, user, fromRoom)
{
var uVars = {}
uVars.strength = 1000
uVars.agility = 800
uVars.speed = 20
// Set the variables for this client
_server.setUserVariables(user, uVars)
}
any ideas?
setUserVariables Undefined?
I think you're not using the correct version of the server.
As specified in the documentation the server-side version of the setUserVariables method is available since SFS 1.4.0.
Please download the latest beta from here >> http://www.smartfoxserver.com/download/beta/
As specified in the documentation the server-side version of the setUserVariables method is available since SFS 1.4.0.
Please download the latest beta from here >> http://www.smartfoxserver.com/download/beta/
Return to “Server Side Extension Development”
Who is online
Users browsing this forum: No registered users and 51 guests