Page 1 of 1

GetRoomList(); bug ?

Posted: 14 Jul 2009, 15:31
by lhqhappy
I have a problem
when I join my room(the room setted Variables when I create) if I use sfs.GetRoomList(); I can't get Room Variables, It's null ! if I comment this function (sfs.GetRoomList(); ) It's run ok :cry:


Posted: 15 Jul 2009, 00:19
by lhqhappy
:shock: waiting! who can help me!

Posted: 16 Jul 2009, 12:30
by Lapo
you shouldn't call GetRoomList after you have joined a Room.
GetRoomList needs to be called once to get the list of available rooms.
From that moment on you will receive smaller updates via the onRoomAdded onRoomDeleted events.

Calling GetRoomList after you have joined one or more rooms will erase your current local data. Simply avoid it and it will work wonders. Plus you can check the examples if you have any doubts.

Hope it helps

Posted: 17 Jul 2009, 01:09
by lhqhappy
I see !
Thanks your answer!
I must GetRoomList before I join any room . :lol:

Posted: 17 Jul 2009, 02:30
by lhqhappy
I change my GetRoomList() before create my room .I can get my room's Variables but other room's Variables is null.
so If I want get all room's Variables I can't use GetRoomList() anytime. is't it? Thanks!

If it 's right . How can I get allroom Variables in my room!
Hope your help! :) Thanks!

Posted: 17 Jul 2009, 07:01
by Lapo
You don't get the other room's variables.
It would generate too much traffic. Room Variables can be accessed when you have joined the Room.