Posts: 27
Threads: 2
Joined: Jan 2008
Reputation:
0
For Roleplay which using a high number of textdraws, it would be cool if you increase the number of textdraws which could be handled from the server at the same time, now it's 2048, a bit low, I think.
Posts: 6,340
Threads: 58
Joined: May 2009
Reputation:
0
Are you kidding? 2048 isn't really low.
Posts: 724
Threads: 62
Joined: Dec 2008
Reputation:
0
If you have 500 players on your server, each player would have 4 textdraws.
First of all, to be honest, you'll never get 500 concurrent players.
Second of all, why would you need more than 4 textdraws per player?
Posts: 2,593
Threads: 38
Joined: Aug 2007
Reputation:
0
That function has been tested many times and works just fine.
It would only flash if it's being deleted, and in that function, TextDrawDestroy isn't being used.
Posts: 2,593
Threads: 38
Joined: Aug 2007
Reputation:
0
Then your work isn't compatible with mine. I just tested my own using this exact function without any problems between 2 players.
Posts: 2,593
Threads: 38
Joined: Aug 2007
Reputation:
0
I had it under OnPlayerUpdate changing the color with random(0xFFFFFF), I saw no sign of change on player 1. You must be showing the textdraw change even when the player isn't pressing keys, otherwise it will never do anything.
Posts: 412
Threads: 20
Joined: Mar 2009
Reputation:
0
2048 is very low if you're creating lots of textdraws in OnPlayerConnect.
The way to do it, is to only create textdraws for the players when they need them. For example, players don't need a speedometer when on foot, so destroy that TextDraw if they exit the vehicle. Just be careful when doing this, don't make any mistakes, as the results could be quite catastrophic ><
Try create textdraws dynamically, as Blacklite said.