[HELP]Text Format
#1

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??
Reply
#2

\ 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<\\
Reply
#3

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

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

Edit: Too late....
Reply
#4

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 -");
Reply
#5

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


Forum Jump:


Users browsing this thread: 2 Guest(s)