SA-MP Forums Archive
[Help] Special Characters - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [Help] Special Characters (/showthread.php?tid=375942)



[Help] Special Characters - Maxips2 - 08.09.2012

Hey guys, I've ran into an issue with special characters which I couldn't figure on my own.

I've been saving a text (File Or MySQL) which is used in dialogs.
The problem is that when I load this text and try to display it, special characters don't do anything, they just show as they are.

For example, if I got this text in my DB:

"Hello\n\nNew Player"

When loading it, it shows the same way instead of showing like this:

Quote:

Hello

New Player

Any ideas on how to apply the special characters from a loaded string?


AW: [Help] Special Characters - Nero_3D - 08.09.2012

Because its '\n' not "\n", notice the '', its only one character

You could save directly put new lines in the text or you create some code that fixes that


Re: [Help] Special Characters - Maxips2 - 08.09.2012

Oh, so while saving the text It was actually saved as a part of the text?