Raised This Month: $ Target: $400
 0% 

i like quotes so i want to put a quote inside a quote so i can quote while i quote


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Owyn
Veteran Member
Join Date: Nov 2007
Old 12-18-2008 , 14:00   i like quotes so i want to put a quote inside a quote so i can quote while i quote
Reply With Quote #1

i want to make this line work with double names and reasons

client_cmd(id, "amx_banip %s %d %s",name2,bantime,reason)

and i need to put all %s inside quotes
so it'd like amx_banip "%s" %d "%s"
Owyn is offline
Send a message via ICQ to Owyn
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 12-18-2008 , 14:09   Re: i like quotes so i want to put a quote inside a quote so i can quote while i quot
Reply With Quote #2

Code:
client_cmd(id, "amx_banip ^"%s^" ^"%d^" ^"%s^"", name2, bantime, reason);
So basically normal quotes "" and ^"stuff^" inside them.
__________________
hleV is offline
Owyn
Veteran Member
Join Date: Nov 2007
Old 12-18-2008 , 14:11   Re: i like quotes so i want to put a quote inside a quote so i can quote while i quot
Reply With Quote #3

thx a lot =) but do i need quotes for bantime? =0
Owyn is offline
Send a message via ICQ to Owyn
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 12-18-2008 , 14:12   Re: i like quotes so i want to put a quote inside a quote so i can quote while i quot
Reply With Quote #4

Code:
client_cmd(id, "amx_banip ^"%s^" %d ^"%s^" ", name2, bantime, reason);
__________________
xPaw is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 12-18-2008 , 14:19   Re: i like quotes so i want to put a quote inside a quote so i can quote while i quot
Reply With Quote #5

Fix your topic title. It is confusing
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 12-19-2008 , 08:04   Re: i like quotes so i want to put a quote inside a quote so i can quote while i quot
Reply With Quote #6

Quote:
Originally Posted by .Owyn. View Post
thx a lot =) but do i need quotes for bantime? =0
Sorry, didn't read your post correctly.
__________________
hleV is offline
SchlumPF*
Veteran Member
Join Date: Mar 2007
Old 12-19-2008 , 08:08   Re: i like quotes so i want to put a quote inside a quote so i can quote while i quot
Reply With Quote #7

Quote:
Originally Posted by YamiKaitou View Post
Fix your topic title. It is confusing
i like that title
__________________
SchlumPF* is offline
Send a message via ICQ to SchlumPF*
Reply



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


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