text word wrapping + color codes - 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)
+--- Thread: text word wrapping + color codes (
/showthread.php?tid=596530)
text word wrapping + color codes -
JernejL - 19.12.2015
Before i reinvent the wheel, has any of you already written a pawn client message text word wrap splitter?
Like something that would split properly by word (and split really long continous lines aswell when appropriate ) AND also handle colour codes embedded in text, so that last color is passed over to new line and all other appropriate rules?
Re: text word wrapping + color codes -
Kaperstone - 19.12.2015
https://sampforum.blast.hk/showthread.php?tid=475063
Does the job, except that it pushes .. at the start and end of the string, which is not in favor for everyone.
And by the source, as I understood it gives the color on the second parameter when line breaks.