removeuser and leaveroom doesn't work

Post here all your questions related with SmartFoxServer .Net/Unity3D API

Moderators: Lapo, Bax

Post Reply
daqulazhang
Posts: 6
Joined: 21 Sep 2009, 06:48

removeuser and leaveroom doesn't work

Post by daqulazhang »

hi,
I used login and joinroom, all OK.
Now I want to leave current room, firstly I used leaveroom, but still the user is still in current room, I saw it from admin tool. So I also used removeuser to get rid of it, but same result.

-daqula
ThomasLund
Posts: 1297
Joined: 14 Mar 2008, 07:52
Location: Sweden

Post by ThomasLund »

Hi

This is by design and not an error. Once a user joins any room he should always stay in at least one

LeaveRoom only works (as documented in the documentation) if a user is allowed to be in multiple rooms at the same time.

To leave a room simply join another. That automagically makes you leave the first room.

Best
Thomas
Post Reply