Textdraw doesnt show - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Textdraw doesnt show (
/showthread.php?tid=450301)
Textdraw doesnt show -
Sellize - 12.07.2013
Код:
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?
Re: Textdraw doesnt show -
Vexus - 12.07.2013
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.
Re: Textdraw doesnt show -
Sellize - 12.07.2013
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