Burgershot
  • Home
  • Members
  • Team
  • Help
  • Search
  • Register
  • Login
  • Home
  • Members
  • Help
  • Search
Burgershot SA-MP Pawn Scripting [Pawn] Automatic textdraw line break

 
  • 0 Vote(s) - 0 Average
Pawn Automatic textdraw line break
Frajola
Offline

Burgershot Member
Posts: 12
Threads: 6
Joined: Apr 2019
Reputation: 0
Location: Rio de Janeiro
#1
2020-11-29, 08:15 AM
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.
Awide
Offline

Burgershot Member
Posts: 62
Threads: 5
Joined: Sep 2019
Reputation: 5
#2
2020-11-29, 09:10 AM
Use strins(string[], const substr[], pos, maxlength=sizeof string) to insert "\n" to the point where you want a line break.
Desolation Roleplay has closed. You can download the gamemode here: https://www.burgershot.gg/showthread.php?tid=2272
Frajola
Offline

Burgershot Member
Posts: 12
Threads: 6
Joined: Apr 2019
Reputation: 0
Location: Rio de Janeiro
#3
2020-11-29, 08:51 PM
(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?
« Next Oldest | Next Newest »



  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Burgershot - Powered by our Community and MyBB Original Theme by Emerald

Linear Mode
Threaded Mode