SA-MP Forums Archive
[HALP]How do you divide your text into 2 Rules? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HALP]How do you divide your text into 2 Rules? (/showthread.php?tid=65631)



[HALP]How do you divide your text into 2 Rules? - whity333 - 14.02.2009

Hey everybody.. I'm new in the sa-mp world.. And I've been looking for ages to fix this rotten thing..

The point is.. if you're roleplaying and you type a too long /me or /s or /l or etc... Your rule gets cutted off.
I've seen that you can split it on other servers into 2 rules.. So there wil be added a "..." at the end of the rule..
and a "..." at the beginning of the second rule..

It would be awesome and I think it would pleas much people that are actually roleplaying at the server.
Thanks for reading this.. And I do hope you got the awnser.

The one who's gives me the right awnser gets a cyber Cookieh :P



Re: [HALP]How do you divide your text into 2 Rules? - GunnerZ - 14.02.2009

What you'd do is find the limit of characters, so it would be like

if string > limit then SendClientMessage(overflow)

you'd assign the characters that flow over to the word overflow.