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

If steam id = my steam id :D


Post New Thread Reply   
 
Thread Tools Display Modes
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 03-09-2015 , 13:58   Re: If steam id = my steam id :D
Reply With Quote #11

Quote:
Originally Posted by LambdaLambda View Post
Why? I've never had any warnings because if that



Yeah, that's true. i've been rushing to leave home really shortly, and wrote it without double chekcing. Sorry about that.
The old syntax still compiles on 1.7 and GetClientAuthString is deprecated in 1.7
__________________
WildCard65 is offline
Brrdy
Senior Member
Join Date: Feb 2015
Old 03-09-2015 , 14:22   Re: If steam id = my steam id :D
Reply With Quote #12

Code:
int color[4];
char auth[32];
char auth2[32];
GetClientAuthId(client, AuthId_Steam2, auth, sizeof(auth); \\Using SteamID2
GetClientAuthString(client, AuthId_Steam3, auth2, sizeof(auth2));

if (StrEqual(auth, "STEAM:00blablabla", false))
{
    color[0] = 0; 
    color[1] = 0;
    color[2] = 255;
    color[3] = 150;
}
if (StrEqual(auth2, "STEAM:00blablabla", false))
{
    color[0] = 0; 
    color[1] = 0;
    color[2] = 255;
    color[3] = 150;
}
else
{  
    color[0] = 255;
    color[1] = 0;
    color[2] = 255;
    color[3] = 150;
}
TF2 Support?????? Not sure if this is right but yeah I might just be derpign ^_^ and no unblocked compiler @ school
__________________
Need help with something regarding your plugin? Or want a new plugin made? For free!!?!?!?!??!? Click HERE! I will do nearly any request <3 If I post in scripting and I resolve and don't post how just shoot me a pm linking me the thread and I will update
Brrdy is offline
LambdaLambda
AlliedModders Donor
Join Date: Oct 2010
Location: London
Old 03-09-2015 , 14:24   Re: If steam id = my steam id :D
Reply With Quote #13

Quote:
Originally Posted by WildCard65 View Post
The old syntax still compiles on 1.7 and GetClientAuthString is deprecated in 1.7
Not really, I've been trying to compile old plugins and they were throwing errors.

Quote:
Originally Posted by Powerlord View Post
Output is the same?

Not on TF2 it isn't. GetClientAuthString returns a SteamID3 on TF2 in 1.7 and newer.
Are you sure?

Last edited by LambdaLambda; 03-09-2015 at 14:28.
LambdaLambda is offline
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 03-09-2015 , 15:31   Re: If steam id = my steam id :D
Reply With Quote #14

Quote:
Originally Posted by LambdaLambda View Post
Not really, I've been trying to compile old plugins and they were throwing errors.


Are you sure?
the 1.7 compiler is able to compile VSH's develop branch(which at this time is STILL in the old syntax)
__________________
WildCard65 is offline
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 03-09-2015 , 15:32   Re: If steam id = my steam id :D
Reply With Quote #15

Quote:
Originally Posted by Brrdy View Post
Code:
int color[4];
char auth[32];
char auth2[32];
GetClientAuthId(client, AuthId_Steam2, auth, sizeof(auth); \\Using SteamID2
GetClientAuthString(client, AuthId_Steam3, auth2, sizeof(auth2));

if (StrEqual(auth, "STEAM:00blablabla", false))
{
    color[0] = 0; 
    color[1] = 0;
    color[2] = 255;
    color[3] = 150;
}
if (StrEqual(auth2, "STEAM:00blablabla", false))
{
    color[0] = 0; 
    color[1] = 0;
    color[2] = 255;
    color[3] = 150;
}
else
{  
    color[0] = 255;
    color[1] = 0;
    color[2] = 255;
    color[3] = 150;
}
TF2 Support?????? Not sure if this is right but yeah I might just be derpign ^_^ and no unblocked compiler @ school
GetClientAuthString doesn't an AuthId value, that's y it is deprecated becuase it returns the engine's steamid format.
__________________
WildCard65 is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 03-09-2015 , 16:15   Re: If steam id = my steam id :D
Reply With Quote #16

Quote:
Originally Posted by LambdaLambda View Post
Not really, I've been trying to compile old plugins and they were throwing errors.


Are you sure?
Yes. The fact that it returned SteamID2 in 1.6.2+ was a compatibility shim after TF2 switched over to using SteamID3 internally that was (intentionally) never introduced to the 1.7 branch.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 03-09-2015 at 16:17.
Powerlord is offline
Chdata
Veteran Member
Join Date: Aug 2012
Location: Computer Chair, Illinois
Old 03-09-2015 , 17:01   Re: If steam id = my steam id :D
Reply With Quote #17

Boost my understanding if you will, but

.smx compiled with GetClientAuthString compiled with a 1.6.2+ compiler.

.smx put into a server using sm1.7

It'll still output SteamID2, correct?
__________________
Chdata is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 03-09-2015 , 17:35   Re: If steam id = my steam id :D
Reply With Quote #18

Quote:
Originally Posted by Chdata View Post
Boost my understanding if you will, but

.smx compiled with GetClientAuthString compiled with a 1.6.2+ compiler.

.smx put into a server using sm1.7

It'll still output SteamID2, correct?
GetClientAuthString is a native, so no. It'll return what core returns, which is (last I checked) documented as being what the engine returns in 1.7.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
Jumpman
Senior Member
Join Date: Mar 2010
Location: Denmark
Old 04-29-2016 , 19:46   Re: If steam id = my steam id :D
Reply With Quote #19

how do i change this line to use GetClientAuthId

GetClientAuthString(client, steamid, sizeof(steamid));

I try with GetClientAuthId(client, steamid, sizeof(steamid));

I dont understand what to do ?
__________________
[+35]Jumpman
Jumpman is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 04-29-2016 , 19:54   Re: If steam id = my steam id :D
Reply With Quote #20

Look up how to use the function.

https://sm.alliedmods.net/new-api/
__________________
ddhoward 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 05:09.


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