How do I get the usercount in the zone?
tried: smartfox.getUserCount()
Should I check all the rooms and sum it?
Tks
zone usercount
it's used this way: zone.getUserCount()
as method of the zone class.
example:
That's it! check the docs!
as method of the zone class.
example:
Code: Select all
var zone = _server.getCurrentZone();
var count = zone.getUserCount() ;
trace(count);I tryed
I just tryed what you said but no luck...
Anyone else cause imm stuck with this too!
Anyone else cause imm stuck with this too!
Underfined
Undefined is the error I get 