Both the very old GetClientAuthString (since SM 1.0.0.1946) and (since SM 1.6.0) has always been a boolean.
So now you also have the chance to change and do things properly from your end, with some superior code like:
PHP Code:
if (!GetClientAuthId(target, AuthId_Steam2, steamid, sizeof(steamid)))
{
/* User probably not authenticated yet or Steam network (or connectivity to it) is temporarily down... Print "try again later" message? */
return Plugin_Handled;
}
PHP Code:
if (GetClientAuthId(target, AuthId_Steam2, steamid, sizeof(steamid)))
{
/* YAY, WE HAVE A STEAM ID, LET'S CONTINUE! */
}
else
{
/* User probably not authenticated yet or Steam network (or connectivity to it) is temporarily down... Print "try again later" message? */
return Plugin_Handled;
}
Even with the older GetClientAuthString, you should also have had done that kind of thing as well, checking the actual return values before you blindly use the data.
__________________