Posts: 1,063
Threads: 278
Joined: Mar 2010
Reputation:
0
I have tryed \n to make a new line on a billboard, but it doesn't work, what is it?
Posts: 1,164
Threads: 20
Joined: Oct 2008
Reputation:
0
If you are doing it in game, \'s are not processed since strings could get injected (the same way % are converted to #). It will only work scriptwise.
Posts: 1,063
Threads: 278
Joined: Mar 2010
Reputation:
0
Yes i am, what should i do?
Posts: 2,593
Threads: 34
Joined: Dec 2007
Use this and if you want use \n type |
pawn Код:
ReplaceChar(string[], ch = '|')
{
for(new i=0 string[i] != 0; i++)
if(string[i] == ch)
string[i] = '\n';
}
example
pawn Код:
cmdtext is "Hello|World"
ReplaceChar(cmdtext);
cmdtext is now "Hello\nWorld"
Posts: 1,063
Threads: 278
Joined: Mar 2010
Reputation:
0
Need to do a new line from in-game..
Posts: 2,593
Threads: 34
Joined: Dec 2007
You must write to file with | and when loading use replacing | to \n
Posts: 1,063
Threads: 278
Joined: Mar 2010
Reputation:
0
This is the line i got in the saving file..