Author Topic: Scripting  (Read 3651 times)

sethjackson

  • Guest
Scripting
« on: November 06, 2006, 09:46:50 pm »
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"));

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).

Well I need the \t in there so how do I go about doing this? Sorry for the n00b question. :P
Thanks. :)


Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Scripting
« Reply #1 on: November 06, 2006, 09:49:59 pm »
Code: cpp
base.AddLibDir(_T("sdk\tinyxml"));
(\t,\a,\b,\n,\r,\v,\f,\\,\",\',\0,\xhhhh)
...maybe this way:
Code: cpp
base.AddLibDir(_T("sdk\\tinyxml"));
...you could also use this:
Code: cpp
base.AddLibDir(_T("sdk/tinyxml"));
...but I wonder if if really could be that simple...?! Did I miss something?
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5498
Re: Scripting
« Reply #2 on: November 06, 2006, 09:50:11 pm »
\\t

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Scripting
« Reply #3 on: November 06, 2006, 09:52:12 pm »
Code: cpp
base.AddLibDir(_T("sdk\\tinyxml"));

*or*

Code: cpp
base.AddLibDir(_T("sdk/tinyxml"));
Be patient!
This bug will be fixed soon...

sethjackson

  • Guest
Re: Scripting
« Reply #4 on: November 06, 2006, 09:59:35 pm »
DOH! Thanks guys. :D