[HELP] Some question about dialog and "\n"
#7

Quote:
Originally Posted by Jefff
Посмотреть сообщение
pawn Код:
Check(txt[])
{
    new d=0;
    while(txt[d])
    {
        if(txt[d] == '|')
            txt[d] = '\n';
        d++;
    }
}
pawn Код:
input - Test|Test123
Check(inputtext);
output - Test\nTest123
pawn Код:
Check(inputtext);
SetObjectMaterialText(...);
Thank you very much, Its works great, thank you so much.
you just made my day

last question, if I want to made 'g' symbol as embed color for example
if players wrote Test123{g}Test1
Test1 will be green, how to make it?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)