SA-MP Forums Archive
Help!! Clickable Textdraw - 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: Help!! Clickable Textdraw (/showthread.php?tid=481892)



Help!! Clickable Textdraw - dickyodie - 18.12.2013

Please i get an error like this in the clickable Textdraw
class 1, class 2, and spawn is a separate object


http://prntscr.com/2c1dli

if i hover on class 1

http://prntscr.com/2c1dcw

if i hover on class 2

http://prntscr.com/2c1dp2

my script
Код:
  Textdraw0 = CreatePlayerTextDraw(playerid,325.000000, 126.000000, "_");
    PlayerTextDrawAlignment(playerid,Textdraw0, 2);
	PlayerTextDrawBackgroundColor(playerid,Textdraw0, 255);
	PlayerTextDrawFont(playerid,Textdraw0, 1);
	PlayerTextDrawLetterSize(playerid,Textdraw0, 0.500000, 21.000000);
	PlayerTextDrawColor(playerid,Textdraw0, -1);
	PlayerTextDrawSetOutline(playerid,Textdraw0, 0);
	PlayerTextDrawSetProportional(playerid,Textdraw0, 1);
	PlayerTextDrawSetShadow(playerid,Textdraw0, 1);
	PlayerTextDrawUseBox(playerid,Textdraw0, 1);
	PlayerTextDrawBoxColor(playerid,Textdraw0, 80);
	PlayerTextDrawTextSize(playerid,Textdraw0, 0.000000, 411.000000);
	PlayerTextDrawSetSelectable(playerid,Textdraw0, 0);

	Textdraw1 = CreatePlayerTextDraw(playerid,137.000000, 176.000000, "Class 1");
	PlayerTextDrawBackgroundColor(playerid,Textdraw1, 255);
	PlayerTextDrawFont(playerid,Textdraw1, 2);
	PlayerTextDrawLetterSize(playerid,Textdraw1, 0.500000, 1.000000);
	PlayerTextDrawColor(playerid,Textdraw1, -1);
	PlayerTextDrawSetOutline(playerid,Textdraw1, 0);
	PlayerTextDrawSetProportional(playerid,Textdraw1, 0);
	PlayerTextDrawSetShadow(playerid,Textdraw1, 1);
	PlayerTextDrawSetSelectable(playerid,Textdraw1, 1);

	Textdraw2 = CreatePlayerTextDraw(playerid,137.000000, 204.000000, "Class 2");
	PlayerTextDrawBackgroundColor(playerid,Textdraw2, 255);
	PlayerTextDrawFont(playerid,Textdraw2, 2);
	PlayerTextDrawLetterSize(playerid,Textdraw2, 0.500000, 1.000000);
	PlayerTextDrawColor(playerid,Textdraw2, -1);
	PlayerTextDrawSetOutline(playerid,Textdraw2, 0);
	PlayerTextDrawSetProportional(playerid,Textdraw2, 0);
	PlayerTextDrawSetShadow(playerid,Textdraw2, 1);
	PlayerTextDrawSetSelectable(playerid,Textdraw2, 1);

	Textdraw5 = CreatePlayerTextDraw(playerid,464.000000, 174.000000, "Spawn");
	PlayerTextDrawAlignment(playerid,Textdraw5, 2);
	PlayerTextDrawBackgroundColor(playerid,Textdraw5, 255);
	PlayerTextDrawFont(playerid,Textdraw5, 3);
	PlayerTextDrawLetterSize(playerid,Textdraw5, 0.679998, 2.299999);
	PlayerTextDrawColor(playerid,Textdraw5, -1);
	PlayerTextDrawSetOutline(playerid,Textdraw5, 0);
	PlayerTextDrawSetProportional(playerid,Textdraw5, 1);
	PlayerTextDrawSetShadow(playerid,Textdraw5, 1);
	PlayerTextDrawSetSelectable(playerid,Textdraw5, 1);



Re: Help!! Clickable Textdraw - dickyodie - 23.12.2013

some one can help me?


Re: Help!! Clickable Textdraw - Pottus - 23.12.2013

Improperly configured and missing PlayerTextDrawTextSize(); most common problem with clickable textdraws.

https://sampwiki.blast.hk/wiki/TextDrawTextSize