SA-MP Forums Archive
Splitting Chat Text - 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: Splitting Chat Text (/showthread.php?tid=323083)



Splitting Chat Text - Abreezy - 04.03.2012

Alright guys, I have this for my OOC command,

pawn Код:
format(string, sizeof(string), "(([Global] "COL_BLUE"%s :"COL_WHITE" %s ))", pName(playerid), params);
            SendClientMessageToAll(COLOR_WHITE, string);
If I type too long of a message, it just gets cut off which could be annoying. So how could I make it split the text, like filling up the first line, then the rest goes to second line, for example:


(([Global] Abreezy: Dude I'm just placing random words into this sentence to give you guys at the SA-MP
forums an example of what I meant. If you noticed, my first line got too long, so It continued in second line, this is what I want.))

So how could I do that . Thanks in advance guys! I bet its something real easy which will make me feel stupid afterwards.