Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: How to display inverted commas in a string  (Read 1764 times)

0 Members and 1 Guest are viewing this topic.

Offline UH60MG

  • Members
  • *
How to display inverted commas in a string
« on: 11 Mar 2008, 19:36:35 »
I have a string and I need to have double inverted commas in it is there a way to do this

I.e the string should be something like:

"[]exec "script.sqs""

(this is to go in the init field of a unit created by createUnit function)

Offline Loyalguard

  • Former Staff
  • ****
Re: How to display inverted commas in a string
« Reply #1 on: 11 Mar 2008, 20:55:39 »
In your example just add double quotes (inverted commas) around the name of the script like this:

"[]exec ""script.sqs"""

So, using the example parameters from the comref for createUnit:

Code: [Select]
"ClassName" createUnit [Position, Group, "[]exec ""script.sqs""", skill, rank];