01.09.2016, 19:51
In save use some special character for \n for example #
next in loading
pawn Код:
SaveMyString(str[])
{
for(new i = strlen(str) - 1; i > -1; i--)
if(str[i] == '\n')
str[i] = '#';
}
pawn Код:
ReplaceChar(str[])
{
for(new i = strlen(str) - 1; i > -1; i--)
if(str[i] == '#')
str[i] = '\n';
}