/say message cuts off
#7

Thanks, anyways I managed to do it by another tutorial by now
Using this stock:

pawn Код:
#define EX_SPLITLENGTH 118


stock SendClientMessageEx(playerid, color, final[])
{
    #pragma unused playerid, color
    new buffer[EX_SPLITLENGTH+5];
    new len = strlen(final);
    if(len>EX_SPLITLENGTH)
    {
        new times = (len/EX_SPLITLENGTH);
        for(new i = 0; i < times+1; i++)
        {
            strdel(buffer, 0, EX_SPLITLENGTH+5);
            if(len-(i*EX_SPLITLENGTH)>EX_SPLITLENGTH)
            {
                strmid(buffer, final, EX_SPLITLENGTH*i, EX_SPLITLENGTH*(i+1));
                format(buffer, sizeof(buffer), "%s ...", buffer);
            }
            else
            {
                strmid(buffer, final, EX_SPLITLENGTH*i, len);
            }
            //SendClientMessage(playerid, color, buffer);
        }
    }
    else
    {
        //SendClientMessage(playerid, color, final);
    }
}
Reply


Messages In This Thread
/say message cuts off - by arad55 - 06.08.2014, 06:17
Re: /say message cuts off - by arad55 - 06.08.2014, 06:39
Re: /say message cuts off - by youssefehab500 - 06.08.2014, 06:43
Re: /say message cuts off - by DoflamingoValentin - 06.08.2014, 07:13
Re: /say message cuts off - by Threshold - 06.08.2014, 07:45
Re: /say message cuts off - by Stinged - 06.08.2014, 07:45
Re: /say message cuts off - by arad55 - 06.08.2014, 09:11

Forum Jump:


Users browsing this thread: 1 Guest(s)