Selectable area textdrawa - 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: Selectable area textdrawa (
/showthread.php?tid=531809)
Selectable area textdrawa -
Callum98 - 14.08.2014
Hello I am in need of some help, when I try to set a selectable area for my textdraw it seems to cut off for some reason.
Here's a before and after of my problem when I add PlayerTextDrawTextSize.
BEFORE:
pawn Код:
smCreateC = CreatePlayerTextDraw(playerid, 84.000000, 197.750000, "Create a character");
PlayerTextDrawLetterSize(playerid, smCreateC, 0.310999, 1.293750);
PlayerTextDrawAlignment(playerid, smCreateC, 1);
PlayerTextDrawColor(playerid, smCreateC, -1);
PlayerTextDrawSetShadow(playerid, smCreateC, 0);
PlayerTextDrawSetOutline(playerid, smCreateC, 1);
PlayerTextDrawBackgroundColor(playerid, smCreateC, 51);
PlayerTextDrawFont(playerid, smCreateC, 1);
PlayerTextDrawSetProportional(playerid, smCreateC, 1);
//PlayerTextDrawTextSize(playerid, smCreateC, 10.0, 15.0);
PlayerTextDrawSetSelectable(playerid, smCreateC, true);
AFTER:
pawn Код:
smCreateC = CreatePlayerTextDraw(playerid, 84.000000, 197.750000, "Create a character");
PlayerTextDrawLetterSize(playerid, smCreateC, 0.310999, 1.293750);
PlayerTextDrawAlignment(playerid, smCreateC, 1);
PlayerTextDrawColor(playerid, smCreateC, -1);
PlayerTextDrawSetShadow(playerid, smCreateC, 0);
PlayerTextDrawSetOutline(playerid, smCreateC, 1);
PlayerTextDrawBackgroundColor(playerid, smCreateC, 51);
PlayerTextDrawFont(playerid, smCreateC, 1);
PlayerTextDrawSetProportional(playerid, smCreateC, 1);
PlayerTextDrawTextSize(playerid, smCreateC, 10.0, 15.0);
PlayerTextDrawSetSelectable(playerid, smCreateC, true);
Anyone got any idea why?
Re: Selectable area textdrawa -
RayC - 14.08.2014
It could be that the font sizes are too masive, have you tried smaller values? Try it the other way around.