Click or drag to resize

SFSEventPLAYER_TO_SPECTATOR_ERROR Field

Dispatched when an error occurs while the current user is being turned from player to spectator in a Game Room.

Namespace:  Sfs2X.Core
Assembly:  SmartFox2X (in SmartFox2X.dll) Version: 1.8.0.0 (1.8.0)
Syntax
C#
public static readonly string PLAYER_TO_SPECTATOR_ERROR

Field Value

Type: String
Remarks
This event is fired in response to the PlayerToSpectatorRequest request in case the operation failed.

The Params object contains the following parameters:

ParameterDescription
errorMessage(string) A message containing the description of the error.
errorCode(short) The error code.
Examples
See the PlayerToSpectatorRequest example.
See Also