Split /me | /do message to next line
#2

Not sure if this works:

pawn Код:
public OnPlayerText(playerid, text[])
{
     StrSplit(text);
     return 0;
}

stock StrSplit(text[])
{
     new string[128], Length = strlen(text) ;
     if(Length > 80)
     {
          strmid(string, text, 0, Length / 2);
          SendClientMessageToAll(COLOR, string);
          strmid(string, text, Length / 2, Length);
          SendClientMessageToAll(COLOR, string);
     }
     else
     {
          SendClientMessageToAll(COLOR, text);
     }
}
You should probably do some formating to get everything as you want.
Reply


Messages In This Thread
Split /me | /do message to next line - by SaW_[VrTx] - 07.03.2011, 12:19
Re: Split /me | /do message to next line - by Cameltoe - 07.03.2011, 13:11

Forum Jump:


Users browsing this thread: 1 Guest(s)