Hi
Can I create a personal room for each player. i try the sample code from doc (Server-side Actionscript API):
var roomObj = {}
roomObj.name = "Room_user1"
roomObj.maxU = 25
var newRoom = _server.createRoom(roomObj, null)
if (newRoom != null)
trace("Great the room was created")
else
trace("A problem occurred, better check the server logs")
but i get the following error:
1120: Access of undefined property _server.
regards
Ooi
Create personal room for each player
-
- Posts: 153
- Joined: 15 Aug 2011, 16:33
That means you havn't assigned instance of smartfoxserver to _server.
_server = new SmartFoxServer(); etc.
_server = new SmartFoxServer(); etc.
---------------------------------------------------
Jamal Soueidan
http://linkedin.com/in/jamalsoueidan
Jamal Soueidan
http://linkedin.com/in/jamalsoueidan
-
- Posts: 153
- Joined: 15 Aug 2011, 16:33
Import these
import com.smartfoxserver.v2.*;
import com.smartfoxserver.v2.core.*;
import com.smartfoxserver.v2.*;
import com.smartfoxserver.v2.core.*;
---------------------------------------------------
Jamal Soueidan
http://linkedin.com/in/jamalsoueidan
Jamal Soueidan
http://linkedin.com/in/jamalsoueidan
Please read the "Auto-remove mode" paragraph of the Room architecture document.
In order to create a Room which never gets removed (unless you restart the server of course) you will need to do it in a server-side Extension.
In order to create a Room which never gets removed (unless you restart the server of course) you will need to do it in a server-side Extension.
Paolo Bax
The SmartFoxServer Team
The SmartFoxServer Team
Hi Bax
Sorry, the link u given is for smartfoxServer 2x rite? is the autoRemoveMode applicable in smartFoxServer Pro?
i go through the online doc (http://www.smartfoxserver.com/docs/), i didnt see any topic related to "autoRemoveMode"
thx
Sorry, the link u given is for smartfoxServer 2x rite? is the autoRemoveMode applicable in smartFoxServer Pro?
i go through the online doc (http://www.smartfoxserver.com/docs/), i didnt see any topic related to "autoRemoveMode"
thx
Return to “OpenSpace v2 discussions and help”
Who is online
Users browsing this forum: No registered users and 28 guests