AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   escape from string (https://forums.alliedmods.net/showthread.php?t=160170)

anupm 06-25-2011 17:47

escape from string
 
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 ?

Hunter-Digital 06-25-2011 17:51

Re: escape from string
 
^ is the escape character.

Code:

server_cmd("say ^"bye all^";quit")

anupm 06-26-2011 02:11

Re: escape from string
 
Quote:

Originally Posted by Hunter-Digital (Post 1496471)
^ is the escape character.

Code:

server_cmd("say ^"bye all^";quit")

Thanks hunter ..i will try it :)


All times are GMT -4. The time now is 23:32.

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