Page 1 of 1

EnableZoneInfo... only zInfo?

Posted: 01 Oct 2009, 20:44
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!

Posted: 03 Oct 2009, 13:07
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