cant see textdraw
#1

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
Reply
#2

show the lines of just the textdraw stuff, and whats it under?
Reply
#3

Do you have
Код:
TextDrawShowForPlayer(playerid,textdrawname);
Reply
#4

no
Reply
#5

You need TextDrawShowForPlayer(playerid,YourTextDrawName); under OnPlayerConnect(I believe)
Reply
#6

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);
.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)