SA-MP Forums Archive
TextDraw problem - 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 problem (/showthread.php?tid=658054)



TextDraw problem - ,TomY' - 21.08.2018

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.


Re: TextDraw problem - KinderClans - 21.08.2018

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


Re: TextDraw problem - ,TomY' - 21.08.2018

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