28.03.2017, 22:44
(
Последний раз редактировалось sampEv0; 29.03.2017 в 02:13.
Причина: works
)
Working.
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. |
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 ;
}
I included it, doesn't seem to be doing anything. Is there anything else I need to do?
|
You should probably learn the basics of scripting first. If you don't know how, scripting probably isn't for you. As a scripter you should be able to look up things, figure out yourself where to get started and start reading things literally.
Good luck, but don't expect to be helped much if you're not gonna work for it yourself. |