Textdraw ID Mess up
#6

Of course you can. When a textdraw is created they just hold an integer value which is returned after the textdraw is created. If you want to test this try the following code:

pawn Код:
new PlayerText:TD0;
new PlayerText:TD1;

public OnGameModeInit()
{
    TD0 = CreatePlayerTextDraw(playerid, 0.0, 0.0, "Textdraw0");
    TD1 = CreatePlayerTextDraw(playerid, 1.0, 1.0, "Textdraw1");
    printf("Textdraw0's ID: %i\nTextdraw1's ID: %i", _:TD0, _:TD1); //Should print 0 for TD0 and 1 for TD1
    return 1;
}
Reply


Messages In This Thread
Textdraw ID Mess up - by Psycho77 - 04.04.2012, 11:32
Re: Textdraw ID Mess up - by Unte99 - 04.04.2012, 11:53
Re: Textdraw ID Mess up - by Psycho77 - 04.04.2012, 11:59
Re: Textdraw ID Mess up - by SpiritEvil - 04.04.2012, 12:03
Re: Textdraw ID Mess up - by Psycho77 - 04.04.2012, 12:04
Re: Textdraw ID Mess up - by SpiritEvil - 04.04.2012, 12:12
Re: Textdraw ID Mess up - by Psycho77 - 04.04.2012, 12:14
Re: Textdraw ID Mess up - by Unte99 - 04.04.2012, 12:16
Re: Textdraw ID Mess up - by SpiritEvil - 04.04.2012, 12:17
Re: Textdraw ID Mess up - by Psycho77 - 04.04.2012, 12:23

Forum Jump:


Users browsing this thread: 1 Guest(s)