SendClientMessageEx
#2

Hi there, strdel deletes the part of text, you can use strmid which extracts a part of text from a string.

pawn Код:
SendClientMessageEx(playerid, color, string[])
{
    if(strlen(string) >= 128)
    {
        new partone[129], parttwo[129];
        strmid(partone, string, 0, 128);
        strmid(parttwo, string, 128, strlen(string));
        SendClientMessage(playerid, color, partone);
        SendClientMessage(playerid, color, parttwo);
    }
    else
        SendClientMessage(playerid, color, string);
    return 1;
}
Reply


Messages In This Thread
SendClientMessageEx - by mirou123 - 28.02.2014, 16:30
Re: SendClientMessageEx - by Kirollos - 28.02.2014, 17:15
Re : SendClientMessageEx - by mirou123 - 01.03.2014, 13:11

Forum Jump:


Users browsing this thread: 1 Guest(s)