Retrieve the player id of the user.
The user must be a player inside a game room for this method to work properly.
This id is 1-based (player 1, player 2, etc.), but if the user is a spectator its value is -1.
The user must be a player inside a game room for this method to work properly.
This id is 1-based (player 1, player 2, etc.), but if the user is a spectator its value is -1.
The current player id
Version:
SmartFoxServer Basic / Pro
SmartFoxServer Basic / Pro
Debug.WriteLine("The user's player id is " + user.GetPlayerId());