getSpectatorCount() return always 0
Posted: 12 Feb 2007, 18:44
Hi
I’m running the latest SFS version 1.5.1b and AS3 API and I have following problem:
A room is created with maxSpectators = 2 and uCount=false. When I join the room as spectator and trace sfs. getSpectatorCount in onJoinRoom() event I get 0 – which I expect to be 1 but when I trace sfs. playerId I get -1 which is correct. Also in onUserEnterRoom event of other users in the room when I trace getSpectatorCount I receive 0, but if iterate trough all users and check their playerId’s I receive correct results.
Also getUserCount is not working properly if I have one user and one spectator getUserCount return 2
I’m running the latest SFS version 1.5.1b and AS3 API and I have following problem:
A room is created with maxSpectators = 2 and uCount=false. When I join the room as spectator and trace sfs. getSpectatorCount in onJoinRoom() event I get 0 – which I expect to be 1 but when I trace sfs. playerId I get -1 which is correct. Also in onUserEnterRoom event of other users in the room when I trace getSpectatorCount I receive 0, but if iterate trough all users and check their playerId’s I receive correct results.
Also getUserCount is not working properly if I have one user and one spectator getUserCount return 2