Textdraw doesnt show
#1

Код:
box = TextDrawCreate(0.0, 480.0,"");
	TextDrawUseBox(box , 1);
	TextDrawBoxColor(box, COLOR_BLACK);
I'm trying to make the whole screen of the player black but why doesnt it work?
Reply
#2

Quote:
Originally Posted by Sellize
Посмотреть сообщение
Код:
box = TextDrawCreate(0.0, 480.0,"");
	TextDrawUseBox(box , 1);
	TextDrawBoxColor(box, COLOR_BLACK);
I'm trying to make the whole screen of the player black but why doesnt it work?
Depending on if you'd like to show the textdraw all the time or not...

Put this wherever you want the textdraw to show:

Код:
TextDrawShowForPlayer(playerid, box);
And edit the TextDrawCreate line as follows, or you might crash.

Код:
box = TextDrawCreate(0.0, 480.0,"~n~");
Having it empty like "" will cause you to crash supposedly. Either leave a space in between it, or use an underscore or a newline function.
Reply
#3

Quote:
Originally Posted by Vexus
Посмотреть сообщение
Depending on if you'd like to show the textdraw all the time or not...

Put this wherever you want the textdraw to show:

Код:
TextDrawShowForPlayer(playerid, box);
And edit the TextDrawCreate line as follows, or you might crash.

Код:
box = TextDrawCreate(0.0, 480.0,"~n~");
Having it empty like "" will cause you to crash supposedly. Either leave a space in between it, or use an underscore or a newline function.
... I know how it works but the textdraw isn't black screen
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)