08.11.2010, 20:12
(
Последний раз редактировалось BMUK; 08.11.2010 в 21:51.
)
This is just something I done, I think that the overflow string will appear BEFORE the actual text like so:
BMUK: awsome
BMUK: I love sa-mp and I think that it is freaking
.. :/
You can work off this as its a basic example
BMUK: awsome
BMUK: I love sa-mp and I think that it is freaking
.. :/
You can work off this as its a basic example
pawn Код:
public OnPlayerText(playerid, text[])
{
if(strlen(text) > 50)
{
new overflow[59];
strmid(overflow,text,50,strlen(text));
strdel(text, 50,strlen(text));
new string[80], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s: %s", name, overflow);
SendPlayerMessageToAll(playerid,string);
}
return 1;
}