OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: UH60MG on 11 Mar 2008, 19:36:35

Title: How to display inverted commas in a string
Post by: UH60MG 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)
Title: Re: How to display inverted commas in a string
Post by: Loyalguard 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];