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

[HELP] Separated Name


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
lexta
Junior Member
Join Date: Aug 2011
Old 03-24-2012 , 21:08   [HELP] Separated Name
Reply With Quote #1

Hi, i have this script

Code:
public RedirectServer()
{
   new RedirectPort[ 10 ];
   get_cvar_string( "port", RedirectPort, charsmax( RedirectPort ) );
   
   get_pcvar_string( gCvarRedirectHost, gRedirectHost, charsmax( gRedirectHost ) );
   get_pcvar_string( gCvarRedirectPath, gRedirectPath, charsmax( gRedirectPath ) );
   get_pcvar_string( gCvarRedirectUsername, gRedirectName, charsmax( gRedirectName ) );
   
   new RedirectSocket = socket_open( gRedirectHost, 80, SOCKET_TCP, gError);
   
   new szData[ 512 ];
   formatex( szData, charsmax( szData ), "GET %s/alive.php?p=%s&f=%s HTTP/1.1^r^nHost:%s^r^nConnection: close^r^n^r^n", gRedirectPath, RedirectPort, gRedirectName, gRedirectHost );
  
   socket_send( RedirectSocket, szData, charsmax( szData ) );
}
This post code in php file some data.

If the cvar gRedirectName name the best place I take only the first part of the name, ie: the

We put f=^"%s^" but not working , place " befon name ie: "the but still take split. Thanks!

Last edited by lexta; 03-24-2012 at 21:08.
lexta 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 18:54.


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