EnableZoneInfo... only zInfo?

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

Moderators: Lapo, Bax

Post Reply
melojoy
Posts: 35
Joined: 02 Oct 2006, 21:27
Location: Italy

EnableZoneInfo... only zInfo?

Post by melojoy »

Hi,
with EnableZoneInfo set true, I can send a request to optain the number of user (zInfo: http://www.smartfoxserver.com/docs/docP ... /index.htm).

is possible to know the number of rooms? I would to inspect the number of active game room in a zone.


Thanks!
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

Nope sorry, the zInfo request only returns the user count.

An alternative to this method is using a shared database where you can publish any custom data at regular intervals. If you need to show on a web page different statistics it is probably recommendable to use this way.

From SmartFoxServer you can use some simple server code to update a database table with the relevant stats which can be then read by the web pages via PHP/ASP/JSP etc...

Hope it helps
Lapo
--
gotoAndPlay()
...addicted to flash games
Post Reply