Raised This Month: $ Target: $400
 0% 

escape from string


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
anupm
Senior Member
Join Date: May 2010
Old 06-25-2011 , 17:47   escape from string
Reply With Quote #1

Hi ,

how to use escape character for a string

For example suppose i was the server will say

Hi "ALL" ..

Now if I put

server_cmd(id,"say Hi "ALL" ..") it won't work properly right ?

So how can i write it ?
anupm is offline
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 06-25-2011 , 17:51   Re: escape from string
Reply With Quote #2

^ is the escape character.

Code:
server_cmd("say ^"bye all^";quit")
__________________
Hunter-Digital is offline
anupm
Senior Member
Join Date: May 2010
Old 06-26-2011 , 02:11   Re: escape from string
Reply With Quote #3

Quote:
Originally Posted by Hunter-Digital View Post
^ is the escape character.

Code:
server_cmd("say ^"bye all^";quit")
Thanks hunter ..i will try it
anupm 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 23:32.


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