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

Old thread


Post New Thread Closed Thread   
 
Thread Tools Display Modes
berni
SourceMod Plugin Approver
Join Date: May 2007
Location: Austria
Old 07-06-2011 , 13:17   Re: SteamTools - SteamWorks for SourceMod
#141

Steam_GetCSteamIDForClient() seems to eat the last number of SteamID's...

PHP Code:
decl String:steamId[32];
Steam_GetCSteamIDForClient(clientsteamIdsizeof(steamId));
PrintToServer("[DEBUG] %N's SteamID: \"%s\""clientsteamId); 
Quote:
[DEBUG] Berni (AUT)'s SteamID: "7656119796616935"
My SteamID: 76561197966169357
__________________
Why reinvent the wheel ? Download smlib with over 350 useful functions.

When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter than "Yes"
powered by Core i7 3770k | 32GB DDR3 1886Mhz | 2x Vertex4 SSD Raid0
berni is offline
databomb
Veteran Member
Join Date: Jun 2009
Location: california
Old 07-06-2011 , 18:28   Re: SteamTools - SteamWorks for SourceMod
#142

Quote:
Originally Posted by berni View Post
Steam_GetCSteamIDForClient() seems to eat the last number of SteamID's...

PHP Code:
decl String:steamId[32];
Steam_GetCSteamIDForClient(clientsteamIdsizeof(steamId));
PrintToServer("[DEBUG] %N's SteamID: \"%s\""clientsteamId); 
My SteamID: 76561197966169357
Experienced the exact same problem but thought it must have just been me, so there's this absolutely horrid workaround where I grabbed the last digit and sent it back to SP as a character to piece together.

PHP Code:
    // find the last digit
    
int iTemp i64friendID 0xF;
    
iTemp iTemp 10;
    
lastChar[0] = (char)(((int)'0')+iTemp); 
__________________
databomb is offline
berni
SourceMod Plugin Approver
Join Date: May 2007
Location: Austria
Old 07-06-2011 , 18:48   Re: SteamTools - SteamWorks for SourceMod
#143

Thank you databomb.

Next error:

Quote:
[SM] Native "Steam_RenderedIDToCSteamID" reported: STEAM_0:0:21196062 is not a valid SteamID
??
__________________
Why reinvent the wheel ? Download smlib with over 350 useful functions.

When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter than "Yes"
powered by Core i7 3770k | 32GB DDR3 1886Mhz | 2x Vertex4 SSD Raid0
berni is offline
jasonfrog
Senior Member
Join Date: Mar 2008
Old 07-07-2011 , 10:33   Re: SteamTools - SteamWorks for SourceMod
#144

I'm probably being a bit thick here, but I want a boolean function that returns whether or not a client is a member of a group or not.

The following always returns True, regardless of if the client is a member or not.
Code:
public IsClientInGroup(client) {
	return Steam_RequestGroupStatus(client, 123456);
}
What am I missing?
jasonfrog is offline
psychonic

BAFFLED
Join Date: May 2008
Old 07-07-2011 , 10:43   Re: SteamTools - SteamWorks for SourceMod
#145

Quote:
Originally Posted by jasonfrog View Post
I'm probably being a bit thick here, but I want a boolean function that returns whether or not a client is a member of a group or not.

The following always returns True, regardless of if the client is a member or not.
Code:
public IsClientInGroup(client) {
    return Steam_RequestGroupStatus(client, 123456);
}
What am I missing?
It's an asynchronous call as Steam does not necessarily send back the result immediately.

You have to wait for the Steam_GroupStatusResult forward to get the result.
Code:
forward Steam_GroupStatusResult(client, groupAccountID, bool:groupMember, bool:groupOfficer);
psychonic is offline
jasonfrog
Senior Member
Join Date: Mar 2008
Old 07-07-2011 , 11:32   Re: SteamTools - SteamWorks for SourceMod
#146

Quote:
Originally Posted by psychonic View Post
It's an asynchronous call as Steam does not necessarily send back the result immediately.

You have to wait for the Steam_GroupStatusResult forward to get the result.
Code:
forward Steam_GroupStatusResult(client, groupAccountID, bool:groupMember, bool:groupOfficer);
Thanks.
I've not used asynchronous calls before.
jasonfrog is offline
Despirator
Senior Member
Join Date: Jun 2011
Location: Kazakhstan ->Shymkent
Old 07-07-2011 , 13:47   Re: SteamTools - SteamWorks for SourceMod
#147

don't forget to compare group id you sent in the forward
Despirator is offline
br5dy
AlliedModders Donor
Join Date: Aug 2008
Old 07-07-2011 , 21:23   Re: SteamTools - SteamWorks for SourceMod
#148

I believe the server this is hosted on is down. It just connects and connects, finally ends up at a blank page, even tried a web proxy to see if it was just my connection.

Can you or someone else upload a mirror?

Thanks!
__________________
[BR5DY]
seDirector
seDirector.net

seDirector - a management tool for all of your Windows-based Source Engine servers (auto-update, too)
br5dy is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 07-07-2011 , 22:56   Re: SteamTools - SteamWorks for SourceMod
#149

Quote:
Originally Posted by berni View Post
Steam_GetCSteamIDForClient() seems to eat the last number of SteamID's...
As I said on IRC at the time, I found and fixed the issue straight after it was reported.
I'll release an update in a few days when I'm feeling a bit better, rather ill at the moment .

Quote:
Originally Posted by berni View Post
Next error
Fun, I'll look into this as well .
__________________
asherkin is offline
whisperity
New Member
Join Date: Jul 2011
Old 07-08-2011 , 08:46   VAC safe?
#150

Hello.

I'm looking forward to use this for Free2BeRenamed, but I have a concern. This thing uses DLLs. Is it VAC-safe? So it won't get me banned if I run the server and then connect to it (using the same computer)?
whisperity is offline
Closed Thread



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 01:03.


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