[Pawn] Automatic textdraw line break - Printable Version + open.mp forum (https://forum.open.mp) -- Forum: SA-MP (https://forum.open.mp/forumdisplay.php?fid=3) --- Forum: Pawn Scripting (https://forum.open.mp/forumdisplay.php?fid=10) --- Thread: [Pawn] Automatic textdraw line break (/showthread.php?tid=1390) |
Automatic textdraw line break - Frajola - 2020-11-29 Hello guys, how are you? I want to create a textdraw notification system. but i would like to know how do i break the line if the message exceeds 15 characters? I would like to know how it is possible to divide sentences with more than 15 characters into 2 lines or more. does anyone know any techniques to help me? I know that if I use "\ n" it will break the line, but I would like to know how I make it automatic, as some messages will be created in game. RE: Automatic textdraw line break - Awide - 2020-11-29 Use strins(string[], const substr[], pos, maxlength=sizeof string) to insert "\n" to the point where you want a line break. RE: Automatic textdraw line break - Frajola - 2020-11-29 (2020-11-29, 09:10 AM)Awide Wrote: Use strins(string[], const substr[], pos, maxlength=sizeof string) to insert "\n" to the point where you want a line break. And if the message is too big and I need to break the line 2 or 3 times in the same text, how do I do it? |