open.mp forum
[Library] PopupMessageTD - Printable Version

+ open.mp forum (https://forum.open.mp)
-- Forum: SA-MP (https://forum.open.mp/forumdisplay.php?fid=3)
--- Forum: Releases (https://forum.open.mp/forumdisplay.php?fid=13)
---- Forum: Libraries (https://forum.open.mp/forumdisplay.php?fid=31)
---- Thread: [Library] PopupMessageTD (/showthread.php?tid=1173)



PopupMessageTD - Logan - 2020-08-31

Greetings dear Burgershot members.



Intro



I made this simple, yet effective?include a year ago?ago for server I was scripting, it is very useful as an SendClientMessage Textdraw alternative, for "non-relevant" messages like errors etc that pile up player's chatbox unecessary. It is located in bottom center of the screen, and it is very appropriate for notifications.



How to install it/implement it?



It depends if you're using modular/non-modular style of coding on your gamemode.?If you're using modular, just #include it?into your main gamemode file. Else, just paste it somewhere on top of your script where you defined public functions/stocks/etc. From functions in your GM, if you want to use it, there are only TWO important functions, the others are used internally in module:

Code:
SendMessage(playerid, MESSAGE_TYPE = MESSAGE_TYPE_NONE, message[])



SendFormatMessage(playerid, MESSAGE_TYPE = MESSAGE_TYPE_NONE, const message[],? va_args<>)



How it works/what does it do?



Very simple. It breaks strings passed into message string longer than 100 chars. You can find out the rest by looking at the code. It also automatically determines average reading time for passed string, depending on char count and number of words.

Download:



PopupMessageTD?- Pastebin.com link



Hope you like it. Greetings, Logan



RE: PopupMessageTD - Sasuke_uchiha - 2020-10-03

Any screenshots?


RE: PopupMessageTD - Toxic - 2020-12-04

Since it is a TextDraw based include most people want to know how does it look before they install it, would be nice if you included some screenshots


RE: PopupMessageTD - Awide - 2020-12-04

Pictures?


RE: PopupMessageTD - Chaprnks - 2021-03-21

(2020-12-04, 12:22 PM)Awide Wrote: Pictures?



Error:

[Image: UeaHR3z.png]



Info:

[Image: GxtyT81.png]



Success:

[Image: rsDF4Ij.png]