09.11.2014, 17:29
(
Последний раз редактировалось theYiin; 24.11.2014 в 17:58.
)
SA-MP TextDraws limit per player is 256. It means, that you can create only 256 texdraws per player (doh).
Because I exceed that limit, you get this include ^^
You can only show maximum 256 of playertextdraws at once on player screen!
Usage:
1. Download: http://pastebin.com/iHFgG6Ai
2. Save code to PlayerTextDrawStreamer.inc file
3. Put this file to pawno/includes folder.
4. On the top of gamemode put #include <PlayerTextDrawStreamer>
5. OnPlayerClickPlayerTextDraw callback located in your GM file rename to OnPlayerClickPTextdraw
6. Compile GM. That's all.
Update log:
v1.1 - Fixed OnPlayerClickPlayerTextDraw hook.
v1.0 - Added OnPlayerDisconnect hook to destroy any created player textdraws
v0.9 - initial release
Write your questions and found bugs (shouldn't be any) in this thread.
Because I exceed that limit, you get this include ^^
pawn Код:
#define LIMIT_OF_PLAYER_TEXT_DRAWS 1000 // The new limit of PlayerTextDraw's
Usage:
1. Download: http://pastebin.com/iHFgG6Ai
2. Save code to PlayerTextDrawStreamer.inc file
3. Put this file to pawno/includes folder.
4. On the top of gamemode put #include <PlayerTextDrawStreamer>
5. OnPlayerClickPlayerTextDraw callback located in your GM file rename to OnPlayerClickPTextdraw
6. Compile GM. That's all.
Update log:
v1.1 - Fixed OnPlayerClickPlayerTextDraw hook.
v1.0 - Added OnPlayerDisconnect hook to destroy any created player textdraws
v0.9 - initial release
Write your questions and found bugs (shouldn't be any) in this thread.