hello all it's me again...
i have this error :
Internal error:
The room list is empty!
The client API cannot function properly until the room list is populated.
Please consult the documentation for more infos.
but all seem to be ok when i connect from other client i get them in the list and them can see my username...
Does that will give me problem later or i have something to do now ?
The room list is empty!
Get the same Error
i call the getRoomlList before creating or joining but i get the same error
my code:
roomObj = new Object();
roomObj.name = "The Cave";
roomObj.isGame = true;
roomObj.isTemp = true;
roomObj.maxUsers = 15;
var variables:Array = new Array();
variables.push( { name:"ogres", val:5, priv:true } );
variables.push( { name:"skeletons", val:4 } );
roomObj.vars = variables;
smartFox.getRoomList();
smartFox.createRoom(roomObj);
By the way.. im using SmartFox Server Pro 1.6.6 and i'm reading this documentation:
http://www.smartfoxserver.com/docs/docP ... index.html
my code:
roomObj = new Object();
roomObj.name = "The Cave";
roomObj.isGame = true;
roomObj.isTemp = true;
roomObj.maxUsers = 15;
var variables:Array = new Array();
variables.push( { name:"ogres", val:5, priv:true } );
variables.push( { name:"skeletons", val:4 } );
roomObj.vars = variables;
smartFox.getRoomList();
smartFox.createRoom(roomObj);
By the way.. im using SmartFox Server Pro 1.6.6 and i'm reading this documentation:
http://www.smartfoxserver.com/docs/docP ... index.html
You can't make the
calls in a row. The getRoomList method is asynchronous: you have to wait for the onRoomListUpdate event before doing any other call.
Code: Select all
smartFox.getRoomList();
smartFox.createRoom(roomObj);
calls in a row. The getRoomList method is asynchronous: you have to wait for the onRoomListUpdate event before doing any other call.
Paolo Bax
The SmartFoxServer Team
The SmartFoxServer Team
This solution worked for me. It may not be of much consequence, but it would be really helpful if the errors thrown gave you information about the asynchronous dependencies of some of these calls.
Seems a little odd that it took me a good portion of my day to figure out that I was calling things out of sync. Either way, thanks!! Take care.
Seems a little odd that it took me a good portion of my day to figure out that I was calling things out of sync. Either way, thanks!! Take care.
Return to “SmartFoxBits for SFS 1.x”
Who is online
Users browsing this forum: No registered users and 26 guests