TextDraw problem
#1

Hey. I have code, that show for player textdraws

Код:
TextDrawShowForPlayer(playerid,PLAYER_1_CARD1);
TextDrawShowForPlayer(playerid,PLAYER_1_CARD2);
TextDrawShowForPlayer(playerid, p1usebox1);
TextDrawShowForPlayer(playerid, p1usebox2);
TextDrawShowForPlayer(playerid, p1usebox3);
TextDrawShowForPlayer(playerid, player1nick);
TextDrawShowForPlayer(playerid, player1money);
TextDrawShowForPlayer(playerid, player1turn);
It show all textdraws, but not PLAYER_1_CARD1 and PLAYER_1_CARD2... I dont know why.

Textdraw code:
Код:
PLAYER_1_CARD1 = TextDrawCreate(203.808731, 272.853393, "p1_1");
	TextDrawLetterSize(PLAYER_1_CARD1, 0.000000, 0.000000);
	TextDrawTextSize(PLAYER_1_CARD1, 27.047603, 39.253356);
	TextDrawAlignment(PLAYER_1_CARD1, 1);
	TextDrawColor(PLAYER_1_CARD1, -1);
	TextDrawSetShadow(PLAYER_1_CARD1, 0);
	TextDrawSetOutline(PLAYER_1_CARD1, 0);
	TextDrawFont(PLAYER_1_CARD1, 4);

	PLAYER_1_CARD2 = TextDrawCreate(231.094390, 273.426727, "p1_2");
	TextDrawLetterSize(PLAYER_1_CARD2, 0.000000, 0.000000);
	TextDrawTextSize(PLAYER_1_CARD2, 27.047603, 39.253356);
	TextDrawAlignment(PLAYER_1_CARD2, 1);
	TextDrawColor(PLAYER_1_CARD2, -1);
	TextDrawSetShadow(PLAYER_1_CARD2, 0);
	TextDrawSetOutline(PLAYER_1_CARD2, 0);
	TextDrawFont(PLAYER_1_CARD2, 4);
Maybe somebody know, why? Maybe somebody can help me, than PM me, I can send all code of system.
Reply
#2

Use player textdraws if you're not showing that textdraws to all players but just to a single one.
Reply
#3

Other textdraws: p1usebox1, p1usebox2 etc. also created like PLAYER_1_CARD1 ( not for player ) but they works.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)