Wrap Text on Textdraw ?
#2

pawn Код:
MSWrap(playerid, szstring[], width)
{
    if(strlen(szstring) > width)
    {
        new line1[110], line2[110], line3[110],line4[110],line5[110], string[1024];
        strmid(line1, szstring, 0, 18);
        strmid(line2, szstring, 18, 36);
        strmid(line3, szstring, 36, 54);
        strmid(line4, szstring, 54, 72);
        strmid(line5, szstring, 72, 90);
        format(string, sizeof(string), "%s~n~%s~n~%s~n~%s~n~%s",line1,line2,line3,line4,line5);
        TextDrawSetString(GPhone_TD[playerid][43], string);
        TextDrawShowForPlayer(playerid, GPhone_TD[playerid][43]);
    }
}
Reply


Messages In This Thread
Wrap Text on Textdraw ? - by GatsbyTrieu - 28.05.2015, 13:04
Re: Wrap Text on Textdraw ? - by Gasman - 28.05.2015, 13:39

Forum Jump:


Users browsing this thread: 1 Guest(s)