chatChangeNickCallback
Callback for chatChangeNick when a player changes his/her nick.
- typedef void (*chatChangeNickCallback)(
- CHAT chat,
- CHATBool success,
- const gsi_char * oldNick,
- const gsi_char * newNick,
- void * param );
Routine | Required Header | Distribution |
---|---|---|
chatChangeNickCallback | <chat.h> | SDKZIP |
Parameters
- chat
- [in] The initialized chat interface object.
- success
- [in] CHATTrue if success, CHATFalse if failure.
- oldNick
- [in] The old nickname.
- newNick
- [in] The new nickname.
- param
- [in] User data; the same param pointer that was passed to chatChangeNick.
Remarks
The chatChangedNickCallback is called when any player in the specified room changes his/her nick. The new nick is assigned to the player if the change was validated by the server. Otherwise, there will be no difference between the old nick or the new nick. The change is determined by "success" which is either CHATTrue or CHATFalse.
Unicode Mappings
Routine | GSI_UNICODE Not Defined | GSI_UNICODE Defined |
---|---|---|
chatChangeNickCallback | chatChangeNickCallbackA | chatChangeNickCallbackW |
chatChangeNickCallbackW and chatChangeNickCallbackA are UNICODE and ANSI mapped versions of chatChangeNickCallback. The arguments of chatChangeNickCallbackA are ANSI strings; those of chatChangeNickCallbackW are wide-character strings.
Section Reference: Gamespy Chat SDK