Dispatched when an error occurs during the creation of a room.
Usually this happens when a client tries to create a room but its name is already taken.
Usually this happens when a client tries to create a room but its name is already taken.


- error (String)
- the error message.

Version:
SmartFoxServer Basic / Pro

The following example shows how to handle a potential error in room creation.
CopyC#

SFSEvent.onCreateRoomError += OnCreateRoomError; NewRoomDescriptor roomObj = new NewRoomDescriptor("The Cave", 15, true); smartFox.CreateRoom(roomObj); public void OnCreateRoomError(string error) { Debug.WriteLine("Room creation error; the following error occurred: " + error); }