gpt4 book ai didi

iphone - 使用 playersToInvite 在非 friend 之间进行游戏中心配对

转载 作者:可可西里 更新时间:2023-11-01 05:56:04 25 4
gpt4 key购买 nike

这不可能吗?我尝试了一些测试代码,当我通过 ID 指定的两个玩家是 friend 时成功匹配,但如果他们不是 friend 则失败并出现此错误。

使用 GKMatchmaker 查找匹配请求

打印错误说明:

Error Domain=GKErrorDomain Code=8 "The requested operation could not be completed because the player is invalid." UserInfo=0x1dd62f40 {GKServerStatusCode=5121, NSUnderlyingError=0x1dd62ca0 "The operation couldn’t be completed. Invitation between players who have not recently played: G:1752931323, G:1752935955", NSLocalizedDescription=The requested operation could not be completed because the player is invalid.}

最佳答案

我也很想能够做到这一点,但我相信 Apple 的文档中规定邀请只能来自 friend 。

关于iphone - 使用 playersToInvite 在非 friend 之间进行游戏中心配对,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15939789/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com