22.04.2013, 16:45
Okay so I made a test CMD to test objectmaterial and when I try to write text and then \n for a new line... it doesn't work/.
found=strfind(result[0],"#r",true);
if(found>-1)
{
format(codestring,sizeof(codestring),"{ff3333}");
pos=found+strlen(codestring);
NeedToRecalc++;
strmid(string1,result,0,found);
strmid(string2,result,found+2,256);
format(result,sizeof(result),"%s%s%s",string1,codestring,string2);
}
the \n doesnt work when inputting text - the script will eat it!
you can parse f.ex a # char and then replace it with the \n i tried something similar to be able to change colors in the main chat: pawn Код:
|