setUserVariables deletes variables server-side only?

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

jurekf
Posts: 69
Joined: 08 Dec 2010, 23:46

setUserVariables deletes variables server-side only?

Postby jurekf » 15 Jul 2011, 07:19

Hi,

We have a couple of setUserVariables calls that are supposed to delete some UserVariables by setting them to null.

Oddly, the variables are deleted on the server, but are still present on the client. Am I misunderstanding how setUserVariables is supposed to work or is this expected behaviour or a bug?
User avatar
Bax
Site Admin
Posts: 4612
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Postby Bax » 15 Jul 2011, 09:44

Are you setting the User Variables to null from the client or from the server?
Paolo Bax
The SmartFoxServer Team
jurekf
Posts: 69
Joined: 08 Dec 2010, 23:46

Postby jurekf » 15 Jul 2011, 09:49

We're setting all user variables from the server.
User avatar
Bax
Site Admin
Posts: 4612
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Postby Bax » 15 Jul 2011, 09:54

Are you sure you are not preventing the client event to be fired? (the setUserVariables method on the server-side has two signatures).
Paolo Bax
The SmartFoxServer Team
jurekf
Posts: 69
Joined: 08 Dec 2010, 23:46

Postby jurekf » 15 Jul 2011, 10:11

We're using the signature without parameters. Also, we're setting two variables in one setVariables call; the other variable is getting set.

Oh, I should mention I've only seen it happen on NPC users and it's pretty consistent. We're also doing the variable change at the same time that we're doing a room change, not sure if that has any effect on it.

I don't remember it happening to regular users.

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 125 guests