zone usercount

Need help with SmartFoxServer? You didn't find an answer in our documentation? Please, post your questions here!

Moderators: Lapo, Bax

Post Reply
dal01
Posts: 2
Joined: 12 Aug 2009, 17:28

zone usercount

Post by dal01 »

How do I get the usercount in the zone?

tried: smartfox.getUserCount()

Should I check all the rooms and sum it?

Tks
smilefr
Posts: 58
Joined: 23 Mar 2009, 16:50
Location: France

Post 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!
ParkerJ
Posts: 30
Joined: 31 Aug 2009, 23:14

I tryed

Post by ParkerJ »

I just tryed what you said but no luck...

Anyone else cause imm stuck with this too!
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

With no luck?
Can you explain what does that mean?
What is the problem? What errors do you get?
Lapo
--
gotoAndPlay()
...addicted to flash games
ParkerJ
Posts: 30
Joined: 31 Aug 2009, 23:14

Underfined

Post by ParkerJ »

Undefined is the error I get :)
Post Reply