Is there a method to get the number of online users in my current zone?
Andrei
Get online players
-
- Posts: 7
- Joined: 08 Dec 2010, 07:44
Re: Get online players
Hi,
The client doesn't have access to those values. You have to get it from the server-side.
The most efficient ways are to run a timer, at a fixed rate, on the server-side which updates a database or a file on the webserver with the zones' userCount, or to use a servlet approach.
You should check this topic, where this question is discussed.
The client doesn't have access to those values. You have to get it from the server-side.
The most efficient ways are to run a timer, at a fixed rate, on the server-side which updates a database or a file on the webserver with the zones' userCount, or to use a servlet approach.
You should check this topic, where this question is discussed.
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
Return to “SFS2X Java / Android API”
Who is online
Users browsing this forum: No registered users and 36 guests