onUserEnterRoom()

Availability:

SmartFoxServer Lite / Basic / Pro

Usage:

smartFox.onUserEnterRoom(roomId <integer>, userObj <propList>)

Description:

The event is fired when a new user joins the current room.

Parameters:

roomId   the id of the room where the event was fired
userObj   The propertylist representing the new user

Check the User Properties for more info on the objects returned.

Returns:

nothing

Example:

on onUserEnterRoom me, roomId, userObj
	put("Welcome " & userObj.name)
end

See also: