语法
参数
ticket PFMatchmakingTicketHandle
匹配票证的句柄。
id char**library-allocated output 票证 ID。
返回值
类型:HRESULT 如果调用成功,则为S_OK;否则为错误代码。可以通过 PFMultiplayerGetErrorMessage() 获取错误代码的人类可读形式。
备注
如果尚未设置票证 ID,则将为空字符串。这可能在以下情况下发生:- 票证处于
PFMatchmakingTicketStatus::Creating状态 - 由于未能将票证提交到匹配服务,票证处于
PFMatchmakingTicketStatus::Failed状态 - 票证在能够提交到匹配服务之前被取消
