Problem with string sizes
#5

This should help you out and relive the headache.

Код:
forward SendClientMessageA(playerid,color,text[]);
public SendClientMessageA(playerid,color,text[])
{
    new safetxt[400];
    format(safetxt,sizeof(safetxt),"%s",text);
    if(strlen(safetxt) <= 99) { SendClientMessage(playerid,color,text); }
    else {

        new texts[128];
        strmid(texts,safetxt,99,256);
        strins(safetxt, " ..", 99, 1);
        strdel(safetxt, 100, strlen(safetxt));
        SendClientMessage(playerid,color,safetxt);
        SendClientMessage(playerid,color,texts);

    }
}
Reply


Messages In This Thread
Problem with string sizes - by justjamie - 08.09.2016, 08:21
Re: Problem with string sizes - by TORKQ - 08.09.2016, 11:00
Re: Problem with string sizes - by justjamie - 08.09.2016, 13:44
Re: Problem with string sizes - by justjamie - 09.09.2016, 09:31
Re: Problem with string sizes - by zT KiNgKoNg - 09.09.2016, 10:17
Re: Problem with string sizes - by justjamie - 10.09.2016, 17:10
Re: Problem with string sizes - by Tass007 - 11.09.2016, 05:44
Re: Problem with string sizes - by SickAttack - 11.09.2016, 07:03
Re: Problem with string sizes - by justjamie - 11.09.2016, 10:24
Re: Problem with string sizes - by FreAkeD - 11.09.2016, 10:36

Forum Jump:


Users browsing this thread: 1 Guest(s)