22.02.2010, 12:09
In 0.3a the limit has been beefed up to 2048.
Your best bet is to create a textdraw array by MAX_PLAYERS.
Then create/destory/show with per id.
Note: It's not a c+p example, you still have to put the textdraw functions in the correct positions.
It depends on what your textdraw shows though, if it's global, then make a single global variable, but if it's shows a item that needs to be dynamic, then use the above example, but if it doesn't change, and stays static, then just make a global variable and show to the player when exactly needed.
Your best bet is to create a textdraw array by MAX_PLAYERS.
Код:
new Text:TextdrawName[MAX_PLAYERS];
Код:
TextdrawName[playerid] = TextDrawCreate(87.000000, 319.000000, "Example"); TextDrawShowForPlayer(playerid,TextdrawName[playerid]); TextDrawHideForPlayer(playerid,TextdrawName[playerid]); TextDrawDestroy(TextdrawName[playerid]);
It depends on what your textdraw shows though, if it's global, then make a single global variable, but if it's shows a item that needs to be dynamic, then use the above example, but if it doesn't change, and stays static, then just make a global variable and show to the player when exactly needed.