Would anyone here know how to convert SteamID's to and from the 3 different types via SourceMod? I've seen a few examples spread around, but no clear way to convert between all 3 types.
Formats- SteamID64, 12345678901234567
- SteamID3, [U:1:23456789]
- SteamID2, STEAM_0:1:23456789
Example Functions:
SteamID64
PHP Code:
ConvertSteamID64to3(SteamID64, SteamID3)
ConvertSteamID64to2(SteamID64, SteamID2)
SteamID3
PHP Code:
ConvertSteamID3to64(SteamID3, SteamID64)
ConvertSteamID3to2(SteamID3, SteamID2)
SteamID2
PHP Code:
ConvertSteamID2to64(SteamID2, SteamID64)
ConvertSteamID2to3(SteamID2, SteamID3)
Many thanks for any help on this!
__________________