[Tutorial] How to use new line(Enter) with SetObjectMaterialText
#9

Quote:
Originally Posted by ikey07
Посмотреть сообщение
At some cases, for example when you use IG map editor, with bult-in SetObjectMaterialText, and you enter the text in the dialog, it wont apply \n

Because \n isn't \n. When used directly in the script, it is a Line Feed (LF) character with ASCII code 10. That's right, a single character! When input into a dialog box, they're just two characters \ (ASCII 92) and n (ASCII 110), with no special meaning whatsoever.

http://www.asciitable.com/
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)