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

Socket check steamid


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Touch
Member
Join Date: Apr 2010
Location: Ukraine
Old 04-08-2010 , 15:37   Socket check steamid
Reply With Quote #1

Hello!
Tell me how to declare a variable steamid a socket?
There is such information, but it works only in player_spawn.

PHP Code:
new client GetClientOfUserId (GetEventInt  (event"userid"));
decl Stringsteamid [64];
GetClientAuthString  (clientsteamidsizeof (steamid)); 
Socket:

PHP Code:
public OnSocketConnected(Handle:socketany:arg) {

    
decl String:requestStr[1024];
    
Format(requestStrsizeof(requestStr), "GET  /connection.php?steamid=%s HTTP/1.0\r\nHost: %s\r\nConnection:  close\r\n\r\n"steamid"master.changeme.com");
    
SocketSend(socketrequestStr);

Thanks.
Touch is offline
Send a message via Skype™ to Touch
Scone
Senior Member
Join Date: Apr 2010
Location: England
Old 04-09-2010 , 02:50   Re: Socket check steamid
Reply With Quote #2

You could pass the userid into the original socket function as the data, and get it out again in the OnSocketConnected callback, ready to find the SteamID.
Scone is offline
Touch
Member
Join Date: Apr 2010
Location: Ukraine
Old 04-09-2010 , 08:23   Re: Socket check steamid
Reply With Quote #3

Quote:
Originally Posted by Scone View Post
You could pass the userid into the original socket function as the data, and get it out again in the OnSocketConnected callback, ready to find the SteamID.
Please, can show how it will look in the code?
Touch is offline
Send a message via Skype™ to Touch
Scone
Senior Member
Join Date: Apr 2010
Location: England
Old 04-09-2010 , 09:01   Re: Socket check steamid
Reply With Quote #4

I think you use the following function:

PHP Code:
SocketSetArg(Handle:socketany:arg); 
Scone is offline
Reply


Thread Tools
Display Modes

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 12:04.


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