peerMessagePlayer
Send a message to the specified player.
- void peerMessagePlayer(
- PEER peer,
- const gsi_char * nick,
- const gsi_char * message,
- MessageType messageType );
Routine | Required Header | Distribution |
---|---|---|
peerMessagePlayer | <peer.h> | SDKZIP |
Parameters
- peer
- [in] Initialized peer object.
- nick
- [in] Nickname of the player who should receive the message.
- message
- [in] The message to send.
- messageType
- [in] The type of message to send, most commonly NormalMessage or ActionMessage.
Remarks
The peerMessagePlayer function sends a message to another player. As long as the nick is valid and matches up with a player, that player will get the message in a peerPlayerMessageCallback().
This function only works while connected to the chat server. The player messaged does not have to be using the Peer SDK.
Unicode Mappings
Routine | GSI_UNICODE Not Defined | GSI_UNICODE Defined |
---|---|---|
peerMessagePlayer | peerMessagePlayerA | peerMessagePlayerW |
peerMessagePlayerW and peerMessagePlayerA are UNICODE and ANSI mapped versions of peerMessagePlayer. The arguments of peerMessagePlayerA are ANSI strings; those of peerMessagePlayerW are wide-character strings.
Section Reference: Gamespy Peer SDK