Raised This Month: $51 Target: $400
 12% 

keep getting steam_id_stop_ignoring_retvals


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Synchroneyes
Junior Member
Join Date: Feb 2019
Old 02-28-2019 , 04:01   keep getting steam_id_stop_ignoring_retvals
Reply With Quote #1

Hi,
I'm trying to get user steamid64 (or steamid3) and i keep getting this:
steam_id_stop_ignoring_retvals

server is set to lan 0, sv_lan 0, using cs:go
PHP Code:
public void OnClientConnected(int client)
{

    
char steamID[255];
    
GetClientAuthId(clientAuthId_SteamID64steamIDsizeof(steamID), true);
    
PrintToServer("STEAMID: %s"steamID);

Any idea why ??

Last edited by Synchroneyes; 02-28-2019 at 04:01.
Synchroneyes is offline
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Old 02-28-2019 , 04:10   Re: keep getting steam_id_stop_ignoring_retvals
Reply With Quote #2

Make sure your server has a valid GSLT token otherwise steam64 specifically won't work.
Drixevel is offline
Synchroneyes
Junior Member
Join Date: Feb 2019
Old 02-28-2019 , 04:30   Re: keep getting steam_id_stop_ignoring_retvals
Reply With Quote #3

It should be because sometime (maybe 1/20) it works so I really don’t understand
Synchroneyes is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 02-28-2019 , 07:44   Re: keep getting steam_id_stop_ignoring_retvals
Reply With Quote #4

You are not checking the return value (retval) of GetClientAuthId, it is returning false because the client does not yet have a SteamID at that point.

You probably want to be using the OnClientAuthorized forward instead, which is fired when a client first has a validated SteamID.
__________________
asherkin is offline
Synchroneyes
Junior Member
Join Date: Feb 2019
Old 02-28-2019 , 09:04   Re: keep getting steam_id_stop_ignoring_retvals
Reply With Quote #5

Quote:
Originally Posted by asherkin View Post
You are not checking the return value (retval) of GetClientAuthId, it is returning false because the client does not yet have a SteamID at that point.

You probably want to be using the OnClientAuthorized forward instead, which is fired when a client first has a validated SteamID.
I love you.
Synchroneyes is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:14.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode