SFS PRO

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

Moderators: Lapo, Bax

indiver
Posts: 57
Joined: 25 Nov 2013, 05:49

SFS PRO

Postby indiver » 14 Jun 2014, 22:00

how can i join any player to a room from server side. Because there is a need in making rummy tournament project. I have 100 registered player . Now i want all of them to join room. then how can i fire userjoin event from server side..
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: SFS PRO

Postby Lapo » 16 Jun 2014, 08:23

[ Move in the proper section of the forum ]
Lapo
--
gotoAndPlay()
...addicted to flash games
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: SFS PRO

Postby Lapo » 16 Jun 2014, 08:26

You can use the server side joinRoom(...) method which works very similarly to the client side API.
The JOIN_ROOM event will be triggered automatically by the server.

See the server side API:
http://www.smartfoxserver.com/docs/1x/d ... /index.htm

thanks
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SmartFoxServer 1.x Discussions and Help”

Who is online

Users browsing this forum: No registered users and 25 guests