29.03.2017, 00:11
Quote:
Hook the SendClientMessage function to (or make) a new function, check for the lenght of the string, if its more than the limit, cut it and send the rest in a separate SendClientMessage function
*insert links here* Have fun. |
I'm not going to spoonfeed you code though, look up how to incorporate this into your script yourself.
pawn Код:
SendSplitMessage ( playerid, color, text [] ) {
new string [ 144 ] ;
if ( strlen ( text ) > 100 ) {
format ( string, sizeof ( string ), "%.100s ...", text ) ;
SendClientMessage(playerid, color, string ) ;
format ( string, sizeof ( string ), "... %s", text [ 100 ] ) ;
SendClientMessage(playerid, color, string ) ;
}
else return SendClientMessage(playerid, color, text ) ;
return true ;
}
Quote:
I included it, doesn't seem to be doing anything. Is there anything else I need to do?
|
Good luck, but don't expect to be helped much if you're not gonna work for it yourself.