Page 1 of 1

about onUserVariablesUpdate

Posted: 09 May 2011, 18:35
by jessica_75
Hi everybody !

I'm sorry for my langage because I'm french so I hope you could understand my request:

I noticed when I use the following code:

Code: Select all

smartFox.addEventListener(SFSEvent.onUserVariablesUpdate, updateVar);


the function updatevar runs only when other-users's variables are update. But I would like to have the same thing for all users (include my user).

Is it possible to do that ?

If you could answer, I will so happy.

Thank you very much by advance.

Kiss.

Jess'

Posted: 11 May 2011, 06:50
by Bax
Are you using SmartFoxServer 1 or SmartFoxServer 2X? Because this forum is about 2X, but the syntax you use seems to be the old one.
In SFS2X the userVariableUpdate event is received by the variable's owner too, but not in SFS 1. The rationale behind this was that you know when you set your own variables.

Posted: 15 May 2011, 13:14
by jessica_75
Ok, thank you very much mister !
bax wrote:Are you using SmartFoxServer 1 or SmartFoxServer 2X? Because this forum is about 2X, but the syntax you use seems to be the old one.
In SFS2X the userVariableUpdate event is received by the variable's owner too, but not in SFS 1. The rationale behind this was that you know when you set your own variables.