SA-MP Forums Archive
Textdraws didn't show after id 200 - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Textdraws didn't show after id 200 (/showthread.php?tid=492585)



Textdraws didn't show after id 200 - MrTinder - 04.02.2014

Hi guys.I have problem..When over 200 players join my server, players with ID higher than 200 didn't see the textdraws...


Re: Textdraws didn't show after id 200 - PowerPC603 - 04.02.2014

Are you using textdraws or playertextdraws?
When using normal textdraws (TextDrawCreate: https://sampwiki.blast.hk/wiki/TextDrawCreate), the limit is 2048 textdraws on the entire server.
If you have 10 textdraws per player, you've reached the limit: https://sampwiki.blast.hk/wiki/Limits.

Try to convert your textdraws to playertextdraws (CreatePlayerTextDraw: https://sampwiki.blast.hk/wiki/CreatePlayerTextDraw).

Then you can have up to 256 textdraws per player.


Re: Textdraws didn't show after id 200 - MrTinder - 04.02.2014

Are you sure this is the reason?


Re: Textdraws didn't show after id 200 - PowerPC603 - 04.02.2014

Calculate it.
Do you have 10 textdraws per player?

10 textdraws per player * 200 players = 2000 textdraws (limit is 2048 ).

You could try to add just a few extra textdraws per player (making empty, hidden ones, just use TextDrawCreate, but don't use them anywhere else and don't show them), let's say 3 more.
2048 / 13 = 157.

Player 157 may see their textdraws, but player 158 won't see them anymore.
Then you know you've reached the limit.


Re: Textdraws didn't show after id 200 - MrTinder - 04.02.2014

The prob. is there that i have only 6 textdraws..


Re: Textdraws didn't show after id 200 - PowerPC603 - 04.02.2014

Then I don't know what may cause the problem.


Re: Textdraws didn't show after id 200 - MrTinder - 04.02.2014

It's not problem for me but it's problem for players..Where can be the problem..