I'm sure that the room variable points to the correct room - I actually include the roomId when setting the room variable.
smartFox.setRoomVariables(rVars, _roomId)
the reason I'm not using getActiveRoom() is because I don't leave the lobby when I join the game room.
// Docs snippet //
NOTE ...
Search found 4 matches
- 16 Oct 2006, 12:56
- Forum: The Bug Trap
- Topic: AS3 - having getVariable problem
- Replies: 3
- Views: 170
- 13 Oct 2006, 14:45
- Forum: The Bug Trap
- Topic: AS3 - having getVariable problem
- Replies: 3
- Views: 170
AS3 - having getVariable problem
Scenerio - (_activeRoom is my private member used to keep track)
Client1:
- logs in to zone
- joins Lobby Room
- joins Game Room 1 - is set to Player1
- sets room vars: ("player1_Name", "name") & ("player1_Char", n)
- 1 at a time
// code snippet from my connection class
public function ...
Client1:
- logs in to zone
- joins Lobby Room
- joins Game Room 1 - is set to Player1
- sets room vars: ("player1_Name", "name") & ("player1_Char", n)
- 1 at a time
// code snippet from my connection class
public function ...
- 06 Oct 2006, 18:03
- Forum: The Bug Trap
- Topic: joinRoom always returns isSpectator=true
- Replies: 10
- Views: 280
- 06 Oct 2006, 14:44
- Forum: The Bug Trap
- Topic: joinRoom always returns isSpectator=true
- Replies: 10
- Views: 280
joinRoom always returns isSpectator=true
Server 1.4.5 beta AS3
joining a gameroom with server.joinRoom(roomId, pass, false) seems to correctly return a player number (1 or 2) and error out if a 3rd player attempts to join (maxUsers set to 2, maxSpectators set to 25)
however
user.isSpectator() returns false
user.getPlayerId() returns ...
joining a gameroom with server.joinRoom(roomId, pass, false) seems to correctly return a player number (1 or 2) and error out if a 3rd player attempts to join (maxUsers set to 2, maxSpectators set to 25)
however
user.isSpectator() returns false
user.getPlayerId() returns ...