I went to use this for a CS:GO plugin, except realized that the Community ID's returned weren't quite right. After doing a little research, I discovered that your stock is returning nothing but "76561197960265728" which is the identifier (and the stock is missing this part of the equation: accountID * 2).
I tried manually having the SteamID's inputted, as well as get them from GetClientAuthString.
Code:
new String:sAuth[32] = "STEAM_0:0:14297752";
new String:sComm[32];
GetCommunityIDString(sAuth, sComm, sizeof(sComm));
LogMessage("SteamID to CommunityID: %s -> %s", sAuth, sComm);
sAuth = "STEAM_0:0:6070829";
GetCommunityIDString(sAuth, sComm, sizeof(sComm));
LogMessage("SteamID to CommunityID: %s -> %s", sAuth, sComm);
Code:
L 08/06/2012 - 18:25:00: [test.smx] SteamID to CommunityID: STEAM_0:0:14297752 -> 76561197960265728
L 08/06/2012 - 18:25:00: [test.smx] SteamID to CommunityID: STEAM_0:0:6070829 -> 76561197960265728
Anyone got any ideas?