Page 1 of 1

zone usercount

Posted: 14 Dec 2009, 13:47
by dal01
How do I get the usercount in the zone?

tried: smartfox.getUserCount()

Should I check all the rooms and sum it?

Tks

Posted: 15 Dec 2009, 12:32
by smilefr
it's used this way: zone.getUserCount()

as method of the zone class.

example:

Code: Select all

var zone = _server.getCurrentZone();
var count = zone.getUserCount() ;
trace(count);
That's it! check the docs!

I tryed

Posted: 21 Dec 2009, 19:55
by ParkerJ
I just tryed what you said but no luck...

Anyone else cause imm stuck with this too!

Posted: 22 Dec 2009, 07:50
by Lapo
With no luck?
Can you explain what does that mean?
What is the problem? What errors do you get?

Underfined

Posted: 22 Dec 2009, 11:00
by ParkerJ
Undefined is the error I get :)