cant see textdraw - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: cant see textdraw (
/showthread.php?tid=156845)
cant see textdraw -
shoru93 - 24.06.2010
everything works perfect no warning error, but cant see the textdraw
Quote:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
#include <a_samp>
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Grand Theft Auto Shot 0.3");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
#define COLOR_LIGHTGREEN 0x00FD4DAA
#define COLOR_BLUE 0x0099FFAA
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_RED 0xAA3333AA
#define COLOR_RED2 0xFF0000AA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_ORANGE 0xFF9900AA
#define COLOR_PINK 0xFF3DF8AA
#define COLOR_LIGHTBLUE 0x33CCFFAA
#define COLOR_DARKRED 0x660000AA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_SYSTEM 0xFFFF00AA
#define COLOR_NAVY 0x000080AA
#define COLOR_AQUA 0xF0F8FFAA
#define COLOR_GOLD 0xB8860BAA
#define COLOR_ORANGERED 0xFF4500AA
new Text:Textdraw0;
|
I also added rest of textdraw on gamemodeinit, but still cant see it
Re: cant see textdraw -
iLcke - 24.06.2010
show the lines of just the textdraw stuff, and whats it under?
Re: cant see textdraw -
DJDhan - 24.06.2010
Do you have
Код:
TextDrawShowForPlayer(playerid,textdrawname);
Re: cant see textdraw -
shoru93 - 24.06.2010
no
Re: cant see textdraw -
iLcke - 24.06.2010
You need TextDrawShowForPlayer(playerid,YourTextDrawName); under OnPlayerConnect(I believe)
Re: cant see textdraw -
DJDhan - 24.06.2010
That is the code for displaying TextDraws. Even if you create the textdraws, they are hidden untill displayed.
So:
Quote:
Originally Posted by DJDhan
Код:
TextDrawShowForPlayer(playerid,textdrawname);
|
Put it where you want the textdraw to show up.
Use:
Код:
TextDrawHideForPlayer(playerid,textdrawname);
to hide it again.
You can also use
Код:
TextDrawShowForAll(textdrawname);
and
Код:
TextDrawHideForAll(textdrawname);
.