Skip to main content
提供票证 ID。

语法

参数

ticket   PFMatchmakingTicketHandle 匹配票证的句柄。 id   char**
library-allocated output
票证 ID。

返回值

类型:HRESULT 如果调用成功,则为 S_OK;否则为错误代码。可以通过 PFMultiplayerGetErrorMessage() 获取错误代码的人类可读形式。

备注

如果尚未设置票证 ID,则将为空字符串。这可能在以下情况下发生:
  • 票证处于 PFMatchmakingTicketStatus::Creating 状态
  • 由于未能将票证提交到匹配服务,票证处于 PFMatchmakingTicketStatus::Failed 状态
  • 票证在能够提交到匹配服务之前被取消

要求

头文件: PFMatchmaking.h

另请参阅

PFMatchmaking 成员
最后修改于 2026年8月13日