13.08.2013, 15:23
(
Последний раз редактировалось dusk; 15.08.2013 в 14:57.
)
Hello, i was trying to create a selecteable textdraw, when a problem occured: i can not select it. Code for creating it:
And the code for it to appear..(it's a command):
I will be happy to hear any thoughts on it
pawn Код:
VehArrows[0] = TextDrawCreate(298.000000, 240.000000, "<");
TextDrawBackgroundColor(VehArrows[0], 255);
TextDrawFont(VehArrows[0], 1);
TextDrawLetterSize(VehArrows[0], 0.500000, 1.000000);
TextDrawColor(VehArrows[0], -1);
TextDrawSetOutline(VehArrows[0], 0);
TextDrawSetProportional(VehArrows[0], 1);
TextDrawSetShadow(VehArrows[0], 1);
TextDrawUseBox(VehArrows[0], 1);
TextDrawBoxColor(VehArrows[0], 255);
TextDrawTextSize(VehArrows[0], 321.0, 10.0);
TextDrawSetSelectable(VehArrows[0],1);
VehArrows[1] = TextDrawCreate(322.000000, 240.000000, ">");
TextDrawBackgroundColor(VehArrows[1], 255);
TextDrawFont(VehArrows[1], 1);
TextDrawLetterSize(VehArrows[1], 0.500000, 1.000000);
TextDrawColor(VehArrows[1], -1);
TextDrawSetOutline(VehArrows[1], 0);
TextDrawSetProportional(VehArrows[1], 1);
TextDrawSetShadow(VehArrows[1], 1);
TextDrawUseBox(VehArrows[1], 1);
TextDrawBoxColor(VehArrows[1], 255);
TextDrawTextSize(VehArrows[1], 338.0, 10.0);
TextDrawSetSelectable(VehArrows[1],1);
pawn Код:
SelectTextDraw(playerid,0xFFFFFFFF);
TextDrawShowForPlayer(playerid,VehArrows[0]);
TextDrawShowForPlayer(playerid,VehArrows[1]);
PlayerTextDrawShow(playerid,VehInfo[playerid]);
I will be happy to hear any thoughts on it