RP text
#1

Hi guys, I wonder how can I split the text by players in the chat if it's too long (for an ex. 10 characters per line) using strrest or somehow else. So if the player says: 0123456789ab it should print:
Код:
Player says:0123456789
Player says:ab
Instead of
Код:
Players says:01234567890ab
Reply
#2

pawn Код:
stock chat(text[])
{
    if(strlen(text) > 64)
    {
        new strings1[65];
        strmid(strings1,text,64,128);
        strdel(text,64,128);
        format(text,66,"%s-",text);
        format(strings1,66,"-%s",strings1);
        SendClientMessageToAll(-1, text);
        SendClientMessageToAll(-1, strings1);
    }
    else SendClientMessageToAll(-1, text);
   
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)