03.11.2014, 14:45
Hello, I have a little Problem.
So basically i was playing with Selectable textdraws, I tried to show the textdraws on OnPlayerKeyStateChange, and then let the player select textdraws.
But when i press they Key ' H ' The textdraws keep showing and dis-appearing (Same with the mouse cursor)
Any idea what's wrong?
Any idea? Thanks
So basically i was playing with Selectable textdraws, I tried to show the textdraws on OnPlayerKeyStateChange, and then let the player select textdraws.
But when i press they Key ' H ' The textdraws keep showing and dis-appearing (Same with the mouse cursor)
Any idea what's wrong?
pawn Код:
if (PRESSED(KEY_CTRL_BACK))
{
PlayerTextDrawShow(playerid, TDEditor1_PTD[playerid][0]);
PlayerTextDrawShow(playerid, TDEditor1_PTD[playerid][1]);
SelectTextDraw(playerid, 0x00FF00FF);
}
else if (RELEASED(KEY_CTRL_BACK))
{
PlayerTextDrawHide(playerid, TDEditor1_PTD[playerid][0]);
PlayerTextDrawHide(playerid, TDEditor1_PTD[playerid][1]);
CancelSelectTextDraw(playerid);
}