TEXTDRAW HELP
#1

Hey guys, i created textdraw with adr1 td editor after it when i enter server so textdraw is not shown

Код:
    TDEditor_TD[0] = TextDrawCreate(566.799987, 5.573320, "test");
    TextDrawLetterSize(TDEditor_TD[0], 0.218001, 1.690000);
    TextDrawTextSize(TDEditor_TD[0], -90.248367, -2.399998);
    TextDrawAlignment(TDEditor_TD[0], 1);
    TextDrawColor(TDEditor_TD[0], -1);
    TextDrawSetShadow(TDEditor_TD[0], -101);
    TextDrawSetOutline(TDEditor_TD[0], -2);
    TextDrawBackgroundColor(TDEditor_TD[0], 255);
    TextDrawFont(TDEditor_TD[0], 2);
    TextDrawSetProportional(TDEditor_TD[0], 1);
Reply
#2

Hello!

Do you create the textdraws in your gamemode and show it to the player?
If so show us the code.
Reply
#3

yeah i created in gamemode and code is on my first post
Reply
#4

Where you show this textdraw to the player?
Reply
#5

OnPlayerConnect
Reply
#6

PUT
pawn Код:
TextDrawShowForPlayer(playerid, TDEditor_TD[0]);
Under OnPlayerConnect below the textdraw code
Reply
#7

Quote:
Originally Posted by UFF
Посмотреть сообщение
PUT
pawn Код:
TextDrawShowForPlayer(playerid, TDEditor_TD[0]);
Under OnPlayerConnect below the textdraw code
That way it will create the textdraw everytime a player connects to server. I suggest you to create global textdraws only once under OnGamemodeInit() and show when needed.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)