PDA

View Full Version : RP text


Wizzy951
21/10/2013, 07:09 PM
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

rickisme
21/10/2013, 08:41 PM
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;
}