onJoinRoom()

Availability:

SmartFoxServer Lite / Basic / Pro

Usage:

smartFox.onJoinRoom(roomObj <propList>)

Description:

The event is fired when a room has been successfully joined.

Parameters:

room   Returns the propertylist representing the room joined

Check the Room Properties for more info on the properties returned.

Returns:

nothing

Example:

This is an example of the properties found in a room propertylist:
[#myPlayerIndex: 0.0000, #variables: [:], #userList: [#0: [#pid: -1.0000, #isMod: 0, #isSpec: 0, #variables: [], #name: "username", #id: 0.0000]], #specCount: NAN, #userCount: 1.0000, #description: "", #updatable: 0, #limbo: 0, #priv: 0, #game: 0, #temp: 0, #maxSpectators: 0.0000, #maxUsers: 50.0000, #name: "The Hall", #id: 1.0000]

on onJoinRoom me, roomObj
	put("Successfully joined room: " & roomObj[#name])
end

See also:

onJoinRoomError()