Word Wrapping (Chat Extension)
#2

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

Tools you may need:
https://sampwiki.blast.hk/wiki/Function#Creating_and_Using
https://sampwiki.blast.hk/wiki/Control_Structures#if
https://sampwiki.blast.hk/wiki/Strlen
https://sampwiki.blast.hk/wiki/Strmid
https://sampwiki.blast.hk/wiki/SendClientMessage

Have fun.
Reply


Messages In This Thread
Text Wrapping (solved) - by sampEv0 - 28.03.2017, 22:44
Re: Word Wrapping (Chat Extension) - by Toroi - 28.03.2017, 23:06
Re: Word Wrapping (Chat Extension) - by Spmn - 28.03.2017, 23:36
Re: Word Wrapping (Chat Extension) - by sampEv0 - 28.03.2017, 23:41
Re: Word Wrapping (Chat Extension) - by Dignity - 29.03.2017, 00:11
Re: Word Wrapping (Chat Extension) - by sampEv0 - 29.03.2017, 00:23

Forum Jump:


Users browsing this thread: 2 Guest(s)