Textdraw update
#1

How can i update textdraw when i excute some cmds,

Changing its color, name, position, etc ?
Reply
#2

pawn Код:
static Text: myTextDraw = INVALID_TEXT_DRAW;

public OnGameModeInit()
{
     myTextDraw = TextDrawCreate("_", 340, 210);
     return 1;
}

COMMAND:mycommand(playerid)
{
     // Use any of the functions from https://sampwiki.blast.hk/wiki/Category:Textdraw to manipulate the textdraw
     // the ID of the textdraw is stored in the variable 'myTextDraw'
     // Example
     TextDrawSetString(myTextDraw, "New!");
     // Make sure you re-show it for the changes to take effect
     return 1;
}
Reply
#3

Quote:
Originally Posted by RajatPawar
Посмотреть сообщение
pawn Код:
static Text: myTextDraw = INVALID_TEXT_DRAW;

public OnGameModeInit()
{
     myTextDraw = TextDrawCreate("_", 340, 210);
     return 1;
}

COMMAND:mycommand(playerid)
{
     // Use any of the functions from https://sampwiki.blast.hk/wiki/Category:Textdraw to manipulate the textdraw
     // the ID of the textdraw is stored in the variable 'myTextDraw'
     // Example
     TextDrawSetString(myTextDraw, "New!");
     return 1;
}
Thank you!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)