SmartFoxServer Unity/.NET API
SetMyPlayerIndex Method (id)
NamespacesSmartFoxClientAPI.DataRoomSetMyPlayerIndex(Int32)

Set the myPlayerId property.
Each room where the current client is connected contains a myPlayerId (if the room is a gameRoom).
myPlayerId == -1 ... user is a spectator
myPlayerId > 0 ... user is a player

Declaration Syntax
C#Visual BasicVisual C++
public void SetMyPlayerIndex(
	int id
)
Public Sub SetMyPlayerIndex ( _
	id As Integer _
)
public:
void SetMyPlayerIndex(
	int id
)
Parameters
id (Int32)
the myPlayerId value

Assembly: SmartFoxClient (Module: SmartFoxClient) Version: 1.2.4.0 (1.2.4.0)