View Single Post
psychonic

BAFFLED
Join Date: May 2008
Old 12-21-2015 , 07:46   Re: [INC] loghelper (updated 2010-05-27)
Reply With Quote #12

Quote:
Originally Posted by Nerus View Post
Hi, I attached new fixed version working correct with SM 1.7.3.

Changes: deprecated GetClientAuthString to GetClientAuthId.
Code:
        //if (!GetClientAuthString(client, player_authid, sizeof(player_authid)))
        if(GetClientAuthId(client, AuthId_Steam3, player_authid, sizeof(player_authid)))
It looks like you negated the check here, so everyone's auth string in the log will be "UNKNOWN" (or whatever is in the uninitialized buffer on failure). Also, to match the game's own logging on every game, it should be AuthId_Engine instead of AuthId_Steam3.

There are 10 other instances to change as well, not just that one. If it wasn't throwing warnings, it's because stock functions are only compiled in if used, else the compiler ignores them.
psychonic is offline