AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   i like quotes so i want to put a quote inside a quote so i can quote while i quote (https://forums.alliedmods.net/showthread.php?t=82177)

Owyn 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
 
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"

hleV 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
 
Code:
client_cmd(id, "amx_banip ^"%s^" ^"%d^" ^"%s^"", name2, bantime, reason);
So basically normal quotes "" and ^"stuff^" inside them.

Owyn 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
 
thx a lot =) but do i need quotes for bantime? =0

xPaw 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
 
Code:
client_cmd(id, "amx_banip ^"%s^" %d ^"%s^" ", name2, bantime, reason);

YamiKaitou 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
 
Fix your topic title. It is confusing

hleV 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
 
Quote:

Originally Posted by .Owyn. (Post 729462)
thx a lot =) but do i need quotes for bantime? =0

Sorry, didn't read your post correctly.

SchlumPF* 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
 
Quote:

Originally Posted by YamiKaitou (Post 729469)
Fix your topic title. It is confusing

i like that title :D


All times are GMT -4. The time now is 09:12.

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