Game Development Community

How to echo a quotation mark?

by Orion the Hunter · in Torque Game Builder · 11/06/2012 (11:16 am) · 4 replies

Hello,

In my save code I need the level's path to be written in to a file saved but the problem is I can't get it to print out the necessary " (Quotation) marks. It thinks it's syntax and that it shouldn't print it. Is there something I can write to make it say:
$SaveDir = "game/data/levels/Level2.t2d";
instead of
$SaveDir = game/data/levels/Level2.t2d;

?

Thanks a lot!

#1
11/06/2012 (1:31 pm)
.
#2
11/06/2012 (3:44 pm)
Uh... what? "."?
#3
11/06/2012 (4:40 pm)
To put a quotation mark in any string/text you use \". It goes like "\"hello\"" which should produce "hello".
#4
11/08/2012 (5:06 am)
Thanks! That helped a lot.