Textdraw problem - Won't show
#1

my textdraw won't show on server, but i do all right, why?

Код:
new Text:verzijamoda;
ongamemodeinit
Код:
//TDOVI
verzijamoda = TextDrawCreate(503.5 ,110 , "WS:DM v1.0");
TextDrawBackgroundColor(verzijamoda, 255);
TextDrawFont(verzijamoda , 1);
TextDrawLetterSize(verzijamoda, 0.210000, 1.100000);
TextDrawColor(verzijamoda , -1);
TextDrawSetOutline(verzijamoda , 1);
TextDrawSetProportional(verzijamoda , 1);
TextDrawSetShadow(verzijamoda , 0);
ongamemodeinit
Код:
foreach (new i : Player)
{
		TextDrawShowForPlayer(i, Textdraw0);
		TextDrawShowForPlayer(i, Textdraw1);
		TextDrawShowForPlayer(i, Textdraw2);
		TextDrawShowForPlayer(i, Textdraw3);
		TextDrawShowForPlayer(i, Textdraw4);
		TextDrawShowForPlayer(i, Textdraw5);
		TextDrawShowForPlayer(i, verzijamoda);
}
ongamemodeexit
Код:
	TextDrawHideForAll(verzijamoda);
	TextDrawDestroy(verzijamoda);
onplayerconnect
Код:
	TextDrawShowForPlayer(playerid, verzijamoda);
Reply
#2

Just make that:
Код:
public OnGameModeInit()
{
	//TDOVI
	verzijamoda = TextDrawCreate(503.5 ,110 , "WS:DM v1.0");
	TextDrawBackgroundColor(verzijamoda, 255);
	TextDrawFont(verzijamoda , 1);
	TextDrawLetterSize(verzijamoda, 0.210000, 1.100000);
	TextDrawColor(verzijamoda , -1);
	TextDrawSetOutline(verzijamoda , 1);
	TextDrawSetProportional(verzijamoda , 1);
	TextDrawSetShadow(verzijamoda , 0);

	TextDrawShowForAll(verzijamoda);
	return 1;
}
Reply
#3

I tried and still with no result ... Still same problem, won't show
Reply
#4

Create new textdraw and you will resolve the problem,
Or if you want me to create one for you just say the format!
Reply
#5

i tried make new textdraw:

Код:
new Text:vmoda;
Код:
vmoda = TextDrawCreate(503.5 ,110 , "WS:DM v1.0");
TextDrawBackgroundColor(vmoda, 255);
TextDrawFont(vmoda, 2);
TextDrawLetterSize(vmoda, 0.210000, 1.100000);
TextDrawColor(vmoda, -1);
TextDrawSetOutline(vmoda, 1);
TextDrawSetProportional(vmoda, 1);
TextDrawSetShadow(vmoda, 0);

TextDrawShowForAll(vmoda);
and still i dont see textdraw, but on connect, i can see textdraw on second, and then txtdraw gone, why?
Reply
#6

You can't do this
pawn Код:
foreach (new i : Player)
{
        TextDrawShowForPlayer(i, Textdraw0);
        TextDrawShowForPlayer(i, Textdraw1);
        TextDrawShowForPlayer(i, Textdraw2);
        TextDrawShowForPlayer(i, Textdraw3);
        TextDrawShowForPlayer(i, Textdraw4);
        TextDrawShowForPlayer(i, Textdraw5);
        TextDrawShowForPlayer(i, verzijamoda);
}
Just put them in OnPlayerConnect without the loop
pawn Код:
TextDrawShowForPlayer(playerid, Textdraw0);
        TextDrawShowForPlayer(playerid, Textdraw1);
        TextDrawShowForPlayer(playerid, Textdraw2);
        TextDrawShowForPlayer(playeridTextdraw3);
        TextDrawShowForPlayer(playerid, Textdraw4);
        TextDrawShowForPlayer(playerid Textdraw5);
        TextDrawShowForPlayer(playerid, verzijamoda);
Reply
#7

i deleted loop and put this under onplayerconnect, and all my other textdraws works, but this one won't
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)