> ## 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.

# PFMatchmakingTicketStatus

> 列舉 PlayFab Multiplayer 配對票證的可能狀態，包括建立中、等候玩家、已配對、已取消和已失敗。

配對票證的可能狀態。

## 語法

```cpp theme={null}
enum class PFMatchmakingTicketStatus  : uint32_t  
{  
    Creating = 0,  
    Joining = 1,  
    WaitingForPlayers = 2,  
    WaitingForMatch = 3,  
    Matched = 4,  
    Canceled = 5,  
    Failed = 6,  
}  
```

## 常數

| 常數 | 描述 |
| - | - |
| Creating | 正在建立配對票證。 |
| Joining | 正在加入配對票證。 |
| WaitingForPlayers | 配對票證正在等候其設定之 `membersToMatchWith` 欄位中指定的所有遠端使用者透過 [PFMultiplayerJoinMatchmakingTicketFromId](/zh-TW/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmultiplayerjoinmatchmakingticketfromid) 加入票證。 |
| WaitingForMatch | 配對票證正在等候找到比賽。 |
| Matched | 配對票證已找到比賽。 |
| Canceled | 配對票證已取消。 |
| Failed | 配對票證未能找到比賽。 |

## 需求

**標頭：** PFMatchmaking.h

## 另請參閱

[PFMatchmaking 成員](/zh-TW/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/pfmatchmaking_members)


## Related topics

- [PFMatchmakingTicketGetStatus](/zh-TW/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmatchmakingticketgetstatus.md)
- [PFMatchmakingTicketGetTicketId](/zh-TW/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmatchmakingticketgetticketid.md)
- [PFMatchmakingTicketGetMatch](/zh-TW/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmatchmakingticketgetmatch.md)
- [PFMultiplayerJoinMatchmakingTicketFromId](/zh-TW/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmultiplayerjoinmatchmakingticketfromid.md)
- [PFMultiplayerCreateMatchmakingTicket](/zh-TW/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmultiplayercreatematchmakingticket.md)
