有人如何使用 PHP/javascript 将 steamid64 (例如:76561198074259974)转换为 steamid (STEAM_0:0:56997123)(我想在加载屏幕上显示 steamid,但不是 steamid64)
看一下这里将 steamID 转换为 steamID64 的代码:https://forums.alliedmods.net/showthread.php?t=60899?t=60899 https://forums.alliedmods.net/showthread.php?t=60899?t=60899
您可以反转它以将 steamID64 转换为 steamID,为此,公式为:
(steamID64 - (76561197960265728 + (steamID64 % 2)))/2
这将为您提供第二个冒号 (:) 之后的数字。如果 steamID64 是奇数 (steamID64 % 2),第一个冒号后面的数字将为 1,否则为 0。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)