SA-MP Forums Archive
how count TextDrawTextSize - 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: how count TextDrawTextSize (/showthread.php?tid=596253)



how count TextDrawTextSize - Karolukas123 - 14.12.2015

Код:

how to know that size i need..


	Vartotojo[playerid][7] = CreatePlayerTextDraw(playerid, 225.812591, 248.916610, "INFO");
	PlayerTextDrawLetterSize(playerid, Vartotojo[playerid][7], 0.400000, 1.600000);
	PlayerTextDrawAlignment(playerid, Vartotojo[playerid][7], 1);
	PlayerTextDrawColor(playerid, Vartotojo[playerid][7], -1);
	PlayerTextDrawSetShadow(playerid, Vartotojo[playerid][7], 0);
	PlayerTextDrawSetOutline(playerid, Vartotojo[playerid][7], 0);
	PlayerTextDrawBackgroundColor(playerid, Vartotojo[playerid][7], 255);
	PlayerTextDrawFont(playerid, Vartotojo[playerid][7], 2);
	PlayerTextDrawSetProportional(playerid, Vartotojo[playerid][7], 1);
	PlayerTextDrawSetShadow(playerid, Vartotojo[playerid][7], 0);
	PlayerTextDrawSetSelectable(playerid, Vartotojo[playerid][7], true);
	PlayerTextDrawTextSize(playerid, Vartotojo[playerid][7], 2.0, 3.6);



Re: how count TextDrawTextSize - Vince - 14.12.2015

Experiment. However it is usually the easiest to enable the box, with alignment center. This will define a nice clickable area. You can set the box color to transparent so it isn't visible.