Raising the letter count limit - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Raising the letter count limit (
/showthread.php?tid=270688)
Raising the letter count limit -
Homerman - 21.07.2011
Hello.
Recently, I have asked for help to make the message player sends divided to two lines, so you can use /me and /do without loosing letters, and I got an answer -
https://sampforum.blast.hk/showthread.php?tid=269653
However, now I need to raise the limit of letters, because when I write something, it cuts in the end and when I do this:
* Homerman sniffs, as he reaches inside his duty belt, then takes out a ticket book along with a pen and starts writing down a ticket.
It shows like
* Name_Surname sniffs, as he reaches inside his duty belt, then takes out a ticket book along with a pen and starts writ
You know what I mean...
I tried to change it by increasing the string limit, didn't help, anyone has idea how to solve it?
I know I'm lame, but... whatever.
Код:
SendCustomPlayerMessage(playerid, color, text[])
{
if(strlen(text) > 112)
{
new text1[112],
text2[224],
string[224];
strmid(text1, text, 0, 112);
strmid(text2, text, 111, 224);
format(string, 224, "%s...", text1);
SendClientMessage(playerid, color, string);
format(string, 224, "...%s", text2);
SendClientMessage(playerid, color, string);
}
else SendClientMessage(playerid, color, text);
}