15.03.2014, 21:38
Use this and if you want use \n type |
example
pawn Код:
ReplaceChar(string[], ch = '|')
{
for(new i=0 string[i] != 0; i++)
if(string[i] == ch)
string[i] = '\n';
}
pawn Код:
cmdtext is "Hello|World"
ReplaceChar(cmdtext);
cmdtext is now "Hello\nWorld"