Raising the letter count limit
#1

Hello.
Recently, I have asked for help to make the message player sends divided to two lines, so you can use /me and /do without loosing letters, and I got an answer - https://sampforum.blast.hk/showthread.php?tid=269653

However, now I need to raise the limit of letters, because when I write something, it cuts in the end and when I do this:

* Homerman sniffs, as he reaches inside his duty belt, then takes out a ticket book along with a pen and starts writing down a ticket.

It shows like

* Name_Surname sniffs, as he reaches inside his duty belt, then takes out a ticket book along with a pen and starts writ

You know what I mean...
I tried to change it by increasing the string limit, didn't help, anyone has idea how to solve it?
I know I'm lame, but... whatever.

Код:
SendCustomPlayerMessage(playerid, color, text[])
{
    if(strlen(text) > 112)
    {
        new text1[112],
            text2[224],
			string[224];

        strmid(text1, text, 0, 112);
        strmid(text2, text, 111, 224);
        
        format(string, 224, "%s...", text1);
        SendClientMessage(playerid, color, string);

        format(string, 224, "...%s", text2);
        SendClientMessage(playerid, color, string);
    }
    else SendClientMessage(playerid, color, text);
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)