> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PFMultiplayerGetErrorMessage

> Reference for PFMultiplayerGetErrorMessage, which returns the human-readable message for an HRESULT error from the PlayFab Multiplayer C/C++ library.

Get the human-readable form of an error generated by the PlayFab Multiplayer library.

## Syntax

```cpp theme={null}
const char * PFMultiplayerGetErrorMessage(  
    HRESULT error  
)  
```

### Parameters

**`error`**   HRESULT

An error code.

### Return value

Type: const char \*

The human-readable error message. The memory for the returned string remains valid for the lifetime of the process.

## Remarks

These error messages are not localized and are only intended for developers, i.e. these error messages are not intended to be shown to users via UI.

## Requirements

**Header:** PFMultiplayer.h

## See also

[PFMultiplayer members](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmultiplayer/pfmultiplayer_members)


## Related topics

- [PlayFab Multiplayer C++ SDK Error Codes](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmultiplayererrors.md)
- [PFMultiplayerGetLobbyInviteListenerStatus](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/functions/pfmultiplayergetlobbyinvitelistenerstatus.md)
- [Handling Lobby and Matchmaking C++ SDK errors](/services/playfab/multiplayer/lobby/lobby-and-matchmaking-client-sdk-errors.md)
- [PFMultiplayerInitialize](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmultiplayer/functions/pfmultiplayerinitialize.md)
- [PFMultiplayerUninitialize](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmultiplayer/functions/pfmultiplayeruninitialize.md)
