chatSendUserMessage
Send a private message to a user.
- void chatSendUserMessage(
- CHAT chat,
- const gsi_char * user,
- const gsi_char * message,
- int type );
Routine | Required Header | Distribution |
---|---|---|
chatSendUserMessage | <chat.h> | SDKZIP |
Parameters
- chat
- [in] Chat SDK object, previously initialized using one of the chatConnect methods.
- user
- [in] Nickname of the user to whom the private message is being sent.
- message
- [in] Message; generally chat text, but may also be a raw data message.
- type
- [in] One of the ChatType predefined types; can signify a chat message or a raw data message.
Remarks
The chatSendUserMessage function to send a private message to a specified user. The recipient does not need to be in the same room as the sender.
Unicode Mappings
Routine | GSI_UNICODE Not Defined | GSI_UNICODE Defined |
---|---|---|
chatSendUserMessage | chatSendUserMessageA | chatSendUserMessageW |
chatSendUserMessageW and chatSendUserMessageA are UNICODE and ANSI mapped versions of chatSendUserMessage. The arguments of chatSendUserMessageA are ANSI strings; those of chatSendUserMessageW are wide-character strings.
Section Reference: Gamespy Chat SDK