Stats in textdraws - targetid help
#16

Quote:
Originally Posted by Anonym2009
Посмотреть сообщение
You have to create a textdraw for each player!

For ex:
pawn Код:
new StatsLevel[MAX_PLAYERS];

    StatsLevel[playerid] = TextDrawCreate(440.000000,388.000000, " ");
    TextDrawAlignment(StatsLevel[playerid], 2);
    TextDrawBackgroundColor(StatsLevel[playerid], 255);
    TextDrawFont(StatsLevel[playerid], 2);
    TextDrawLetterSize(StatsLevel[playerid], 0.160000, 0.599999);
    TextDrawColor(StatsLevel[playerid], 0xE81010FF);
    TextDrawSetOutline(StatsLevel[playerid], 1);
    TextDrawSetProportional(StatsLevel[playerid], 1);


    TextDrawShowForPlayer(playerid, StatsLevel[playerid]);
    format(string, sizeof string, "LEVEL: %d", PlayerInfo[playerid][pLevel]);
    TextDrawSetString(StatsLevel[playerid], string);
No, no, no. Don't do this. There is a limit of 2048 TextDraws. If you do this way, you will lose 500 of them, and that's 1/4 of the maximum.
Use PlayerTextdraws. They are made for this reason!
Reply


Messages In This Thread
Stats in textdraws - targetid help - by Saddin - 27.07.2012, 21:16
Re: Stats in textdraws - targetid help - by Roko_foko - 27.07.2012, 21:24
Re: Stats in textdraws - targetid help - by Saddin - 27.07.2012, 21:26
Re: Stats in textdraws - targetid help - by Roko_foko - 27.07.2012, 21:31
Re: Stats in textdraws - targetid help - by Saddin - 27.07.2012, 21:37
Re: Stats in textdraws - targetid help - by Marlon_Lorran - 27.07.2012, 21:37
Re: Stats in textdraws - targetid help - by The__ - 27.07.2012, 21:38
Re: Stats in textdraws - targetid help - by Saddin - 27.07.2012, 22:04
Re: Stats in textdraws - targetid help - by Saddin - 28.07.2012, 07:39
Re: Stats in textdraws - targetid help - by Roko_foko - 28.07.2012, 08:11
Re: Stats in textdraws - targetid help - by Saddin - 28.07.2012, 08:14
Re: Stats in textdraws - targetid help - by nGen.SoNNy - 28.07.2012, 08:21
Re: Stats in textdraws - targetid help - by Saddin - 28.07.2012, 11:08
Re: Stats in textdraws - targetid help - by nGen.SoNNy - 28.07.2012, 11:52
Re: Stats in textdraws - targetid help - by Saddin - 28.07.2012, 12:05
Re: Stats in textdraws - targetid help - by Roko_foko - 28.07.2012, 12:57
Re: Stats in textdraws - targetid help - by Saddin - 28.07.2012, 13:01
Re: Stats in textdraws - targetid help - by Roko_foko - 28.07.2012, 13:14
Re: Stats in textdraws - targetid help - by Saddin - 28.07.2012, 13:19
Re: Stats in textdraws - targetid help - by Roko_foko - 28.07.2012, 16:11
Re: Stats in textdraws - targetid help - by Saddin - 28.07.2012, 16:15
Re: Stats in textdraws - targetid help - by Roko_foko - 28.07.2012, 16:25
Re: Stats in textdraws - targetid help - by Saddin - 28.07.2012, 16:29
Re: Stats in textdraws - targetid help - by Saddin - 28.07.2012, 16:37
Re: Stats in textdraws - targetid help - by Roko_foko - 28.07.2012, 16:40
Re: Stats in textdraws - targetid help - by Saddin - 28.07.2012, 16:42
Re: Stats in textdraws - targetid help - by Saddin - 28.07.2012, 16:58

Forum Jump:


Users browsing this thread: 7 Guest(s)