Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Scripting
(1/1)
sethjackson:
Hey I'm having a newbie problem with scripts.
I keep getting errors with this kind of code:
--- Code: (cpp) ---base.AddLibDir(_T("sdk\tinyxml"));
--- End code ---
--- Quote ---Squirrel's strings, behave like C or C++, are delimited by quotation marks(") and can contain escape sequences(\t,\a,\b,\n,\r,\v,\f,\\,\",\',\0,\xhhhh).
--- End quote ---
Well I need the \t in there so how do I go about doing this? Sorry for the n00b question. :P
Thanks. :)
MortenMacFly:
--- Quote from: sethjackson on November 06, 2006, 09:46:50 pm ---
--- Code: (cpp) ---base.AddLibDir(_T("sdk\tinyxml"));
--- End code ---
(\t,\a,\b,\n,\r,\v,\f,\\,\",\',\0,\xhhhh)
--- End quote ---
...maybe this way:
--- Code: (cpp) ---base.AddLibDir(_T("sdk\\tinyxml"));
--- End code ---
...you could also use this:
--- Code: (cpp) ---base.AddLibDir(_T("sdk/tinyxml"));
--- End code ---
...but I wonder if if really could be that simple...?! Did I miss something?
killerbot:
\\t
mandrav:
--- Code: (cpp) ---base.AddLibDir(_T("sdk\\tinyxml"));
--- End code ---
*or*
--- Code: (cpp) ---base.AddLibDir(_T("sdk/tinyxml"));
--- End code ---
sethjackson:
DOH! Thanks guys. :D
Navigation
[0] Message Index
Go to full version