USER_DISCONNECT getPlayerId() returns 0
USER_DISCONNECT getPlayerId() returns 0
When a user is disconnected, I want to get the playerId he had at the moment he was disconnected. However, It is always 0. My guess is that since he left the room, he doesn't have a player id anymore. What would be the best way to access this information?
hello. Well, i think that.s the expected behavior, as when an user disconnects, he first leaves all the joined rooms.
Are you using this in a room extension? Also, are you listening for the USER_LEAVE or the USER_DISCONNECT event?
Finally, why do you need to access the playerId when an user disconnects?
Are you using this in a room extension? Also, are you listening for the USER_LEAVE or the USER_DISCONNECT event?
Finally, why do you need to access the playerId when an user disconnects?
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.