SA-MP Forums Archive
[HELP]Text Format - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP]Text Format (/showthread.php?tid=208973)



[HELP]Text Format - psoftware - 09.01.2011

I want to put this text />I<\ into a textdraw. It causes an error. How can i format this text to show it in a textdraw??


Re: [HELP]Text Format - Mauzen - 09.01.2011

\ is called excape character, it is replaced by something, depending from the character that you write after it.
\n is new line for example.

\\ would write a \ so this is what you need.
/>I<\\


Re: [HELP]Text Format - JaTochNietDan - 09.01.2011

It's because \ is an escape character. Just add double slashes. Like so:

pawn Код:
"Message />I<\\"
Only one will appear.

Edit: Too late....


Re: [HELP]Text Format - zSuYaNw - 09.01.2011

Thanks.
pawn Код:
\ > to "Jump" Linea for SCRIPT
\n > to "Jump" linea for OnGame
pawn Код:
new string[128];
format(string, sizoef(string),"This string very big - This string very big -This string very big -This string very big -This string very big -This string very big -This string very big -This string very big -This string very big -This string very big -This string very big -This string very big -This string very big -This string very big -This string very big -This string very big -This string very big -This string very big -");

ERROR:This linea After Loong.

Solucзiуn:
format(string, sizoef(string),"This string very big - This string very big -This string very big -This string very big\n\-This string very big -This string very big -This string very big -This string very big -This string very big -\n\This string very big -This string very big -This string very big -This string very big -This string very big -This \n\string very big -This string very big -This string very big -This string very big -");



Re: [HELP]Text Format - psoftware - 09.01.2011

Thanks at all.... the code works!!!