Creating TextDraws when showed to a player...
#2

In 0.3a the limit has been beefed up to 2048.

Your best bet is to create a textdraw array by MAX_PLAYERS.

Код:
new Text:TextdrawName[MAX_PLAYERS];
Then create/destory/show with per id.

Код:
TextdrawName[playerid] = TextDrawCreate(87.000000, 319.000000, "Example");
TextDrawShowForPlayer(playerid,TextdrawName[playerid]);
TextDrawHideForPlayer(playerid,TextdrawName[playerid]);
TextDrawDestroy(TextdrawName[playerid]);
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.
Reply


Messages In This Thread
Creating TextDraws when showed to a player... - by Nekom - 22.02.2010, 11:30
Re: Creating TextDraws when showed to a player... - by GhoulSlayeR - 22.02.2010, 12:09
Re: Creating TextDraws when showed to a player... - by Nekom - 22.02.2010, 12:19

Forum Jump:


Users browsing this thread: 1 Guest(s)