14.03.2011, 15:17
pawn Код:
SendCustomPlayerMessage(playerid, color, text[])
{
if(strlen(text) > 64)
{
new text1[65],
text2[65];
strmid(text2, text, 64, 128);
strmid(text1, text, 0, 64);
format(string, 128, "%s...", text1);
SendClientMessage(playerid, color, string);
format(string, 128, "...%s", text2);
SendClientMessage(playerid, color, string);
}
else SendClientMessage(playerid, color, text);
}
SendCustomPlayerMessage(0, 0xAA3333AA, "Sam says: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaa");
Will output
Sam says: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaa...
...aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaa