29.05.2010, 12:09
My server chat string is too short, how can I make it longer? To type more sentences . Please help.
Thanks.
Thanks.
Originally Posted by [HiC
TheKiller ]
Well, you can make it so it uses SendClientMessage for the message on OnPlayerText so you can type longer sentences. |
public OnPlayerText(playerid, text[])
{
SendPlayerMessageToAll(playerid, " ");
SendClientMessageToAll(0xFFFFFFFF, text);
return 0;
}
Miguel: This is the message, just shown by the code I just told you.
Miguel: This is the message by the normal chat.
Originally Posted by SAWC™
Quote:
pawn Код:
Код:
Miguel: This is the message, just shown by the code I just told you. Код:
Miguel: This is the message by the normal chat. |
stock SplitString(CharPerLine, StringToSplit[])
{
new Lines = floatround(strval(StringToSplit) / CharPerLine, floatround_ceil);
new Tempstr[256];
for(new x = 1; x<lines; x++)
{
strmid(Tempstr, StringToSplit, x*150 - 150, x*150);
SendClientMessageToAll(0xFF0000AA, Tempstr);
}
return 1;
}