setUserVariables Undefined?

Post here your questions about Actionscript and Java server side extensions development.

Moderators: Lapo, Bax

Sparticus
Posts: 227
Joined: 27 Feb 2006, 17:44
Location: Canada
Contact:

setUserVariables Undefined?

Postby Sparticus » 27 Feb 2006, 23:52

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?
User avatar
Lapo
Site Admin
Posts: 23027
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 28 Feb 2006, 06:57

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/
Lapo
--
gotoAndPlay()
...addicted to flash games

Return to “Server Side Extension Development”

Who is online

Users browsing this forum: No registered users and 51 guests