Forum

> > CS2D > Scripts > " \ " in hudtxt2 isn't visible
Forums overviewCS2D overview Scripts overviewLog in to reply

English " \ " in hudtxt2 isn't visible

7 replies
To the start Previous 1 Next To the start

old " \ " in hudtxt2 isn't visible

Sudden Death
User Off Offline

Quote
Hey, i was making stickman with hudtxt:
Spoiler >

But his left arm and leg isn't visible (our right)
img:
Anything I should know?

old Re: " \ " in hudtxt2 isn't visible

Infinite Rain
Reviewer Off Offline

Quote
Do "\\" except of just "\".

Lua uses "\" sign to define special characters such as "new line" character ("\n"). So to get a singular "\" in a string you have to use "\\".

Hope you understand what I mean because it's hard to explain such things with my broken English.
edited 2×, last 03.01.14 09:46:07 pm

old Re: " \ " in hudtxt2 isn't visible

Apache uwu
User Off Offline

Quote
I think it would be appropriate to reference the manual.

Clicky

\a	bell
\b	back space
\f	form feed
\n	newline
\r	carriage return
\t	horizontal tab
\v	vertical tab
\\	backslash
\"	double quote
\'	single quote
\[	left square bracket
\]	right square bracket

old Re: " \ " in hudtxt2 isn't visible

Rainoth
Moderator Off Offline

Quote
because "\" is a special symbol you can use,
like uhm \169 = ©
and similar. You might want to try out different quotes, might work.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview