Raised This Month: $ Target: $400
 0% 

Little Help. with these


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
dantrix
New Member
Join Date: Feb 2009
Old 08-04-2010 , 18:53   Little Help. with these
Reply With Quote #1

Hi.. im trie to created a plugin for bind keys automatic, but i have a problem with quotes.

ex:
PHP Code:
public client_connect(id) {
        
client_cmd(id"bind f7 "echo BLOCK";disconnect"
im get error, because just get "bind f7 " <-- . and i need quotes for correctly bind keys in counter-strike console.

some special character or something?

(novice programmer) THX.
dantrix is offline
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 08-04-2010 , 19:03   Re: Little Help. with these
Reply With Quote #2

Code:
public client_connect(id)
{
client_cmd(id, "bind f7 ^"echo BLOCK;disconnect^"")
}
You use ^"COMMAND^" inside of other quotes to put quotes around those.
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
minimiller
Veteran Member
Join Date: Aug 2007
Location: United Kingdom
Old 08-04-2010 , 19:04   Re: Little Help. with these
Reply With Quote #3

escape the " that are inside " with a ^
E.g.
client_cmd(id, "bind f7 ^"echo BLOCK^";disconnect");

or use '
E.g.
client_cmd(id, "bind f7 'echo BLOCK';disconnect");
__________________

Last edited by minimiller; 08-04-2010 at 19:05. Reason: too much php
minimiller is offline
Send a message via MSN to minimiller
dantrix
New Member
Join Date: Feb 2009
Old 08-04-2010 , 19:38   Re: Little Help. with these
Reply With Quote #4

Thank you very much!!
dantrix is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-04-2010 , 20:11   Re: Little Help. with these
Reply With Quote #5

So pathetic.
__________________
fysiks is offline
vL.
Senior Member
Join Date: Aug 2009
Location: Estonia
Old 08-04-2010 , 21:10   Re: Little Help. with these
Reply With Quote #6

Why are u helping him? Hes slowhacking.
vL. 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 00:14.


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