Raised This Month: $ Target: $400
 0% 

Adding quotes in string


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
hypheni
Senior Member
Join Date: Jul 2011
Location: India
Old 01-11-2013 , 23:26   Adding quotes in string
Reply With Quote #1

How do I add quotes into my formatted string ?

my output should be like: sample "quoted text". actually this will go to server console to execute a server cmd. Below code is not working

PHP Code:
new szStr1[11], szStr2[25]
formatex(Str225"sample_cmd ^"%s^""Str1
client_cmd(id, "echo %s", Str2); -- shows sample_cmd <value>
or
client_cmd(id, "echo ^"%s^"", Str2); --shows sample_cmd <value>""

Last edited by hypheni; 01-11-2013 at 23:28.
hypheni is offline
Send a message via Skype™ to hypheni
 


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 13:40.


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