AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How To Use Double Parameter ? (https://forums.alliedmods.net/showthread.php?t=276948)

Awesome_man 12-30-2015 23:27

How To Use Double Parameter ?
 
For eg; I want to use amx_hello "nick" but all of this inside a ""

EG :

Code:

"amx_hello "nick""
How to do this ?

fysiks 12-30-2015 23:41

Re: How To Use Double Parameter ?
 
In what context?

Awesome_man 12-30-2015 23:44

Re: How To Use Double Parameter ?
 
Quote:

Originally Posted by fysiks (Post 2378322)
In what context?

server_cmd("amx_hello "nick"")

In this way but how to do it ?

fysiks 12-30-2015 23:52

Re: How To Use Double Parameter ?
 
You need to escape the quotes. The escape character is ^

PHP Code:

server_cmd("asdf ^"asdf^""


Awesome_man 12-31-2015 00:36

Re: How To Use Double Parameter ?
 
Quote:

Originally Posted by fysiks (Post 2378326)
You need to escape the quotes. The escape character is ^

PHP Code:

server_cmd("asdf ^"asdf^""


Thnx :)


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

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