Raised This Month: $ Target: $400
 0% 

space in %s


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Fean0r
Member
Join Date: Mar 2004
Location: Belfast, UK
Old 05-02-2004 , 16:10   space in %s
Reply With Quote #1

if %s = the man

its only picks up "the"

client_cmd(id,"%s %s", blah1, blah2)

How can I make the 2nd %2 include "the man"

Thanks
__________________
Fean0r
Fean0r is offline
knekter
Senior Member
Join Date: Mar 2004
Location: PA
Old 05-02-2004 , 17:20  
Reply With Quote #2

blah1[] = "whatever"
blah2[] = "the man"
__________________
More updates for Matrix Mod!
knekter is offline
Send a message via AIM to knekter Send a message via MSN to knekter
Fean0r
Member
Join Date: Mar 2004
Location: Belfast, UK
Old 05-02-2004 , 17:49  
Reply With Quote #3

Maybe I explained that badly

blah2 already equals "the man" but when I run a command it only picks up "the"

If I do client_print(id,print_notify,"%s %s", blah1, blah2) is does show "the man" but using client_cmd( is does nt...
__________________
Fean0r
Fean0r is offline
knekter
Senior Member
Join Date: Mar 2004
Location: PA
Old 05-02-2004 , 17:52   hmm
Reply With Quote #4

Thats odd, cant help ya there sry
__________________
More updates for Matrix Mod!
knekter is offline
Send a message via AIM to knekter Send a message via MSN to knekter
AssKicR
Veteran Member
Join Date: Mar 2004
Location: Norway-Europe(GTM+1)
Old 05-02-2004 , 18:55  
Reply With Quote #5

try

client_print(id,print_notify,"%s ^"%s^"", blah1, blah2)
__________________
My Plugins

Got ??
AssKicR is offline
SidLuke
Senior Member
Join Date: Mar 2004
Location: Poland, Chrzanow
Old 05-02-2004 , 19:08  
Reply With Quote #6

Quote:
Originally Posted by AssKicR
try

client_print(id,print_notify,"%s ^"%s^"", blah1, blah2)
He is talking about client_cmd
SidLuke is offline
Send a message via AIM to SidLuke Send a message via MSN to SidLuke
SidLuke
Senior Member
Join Date: Mar 2004
Location: Poland, Chrzanow
Old 05-02-2004 , 19:18  
Reply With Quote #7

Maybe just try:
client_cmd(id,blah1, blah2)
SidLuke is offline
Send a message via AIM to SidLuke Send a message via MSN to SidLuke
AssKicR
Veteran Member
Join Date: Mar 2004
Location: Norway-Europe(GTM+1)
Old 05-02-2004 , 19:39  
Reply With Quote #8

Quote:
Originally Posted by SidLuke
Quote:
Originally Posted by AssKicR
try

client_print(id,print_notify,"%s ^"%s^"", blah1, blah2)
He is talking about client_cmd
do client_cmd(id,print_notify,"%s ^"%s^"", blah1, blah2) then
__________________
My Plugins

Got ??
AssKicR is offline
Fean0r
Member
Join Date: Mar 2004
Location: Belfast, UK
Old 05-02-2004 , 19:47  
Reply With Quote #9

Great thanks

1 last thing..

read_argv(1, blah1, 49)

if I use "amx_test one two" would the above return "one two" or just "one" (I want it to return "one two" - I really want to to return anything after amx_text so it could be "one two three four five etc" )

Thanks.
__________________
Fean0r
Fean0r is offline
devicenull
Veteran Member
Join Date: Mar 2004
Location: CT
Old 05-02-2004 , 20:10  
Reply With Quote #10

Just one
Use..
read_argv(string,12
copy(params,128,string[9]) //9 = strlen(amx_test )
__________________
Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/
devicenull 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 07:03.


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