25.01.2014, 12:21
I created several textdraws and I put in two to three PlayerTextDrawSetPreviewModel.
So I then used OnPlayerClickPlayerTextDraw, and in a ShowPlayerDialog.
The trouble is that when I click once to place the ShowPlayerDialog and I cancel, I can click anywhere on the screen (Not the exact spot so) it will the ShowPlayerDialog...
Help me please?
So I then used OnPlayerClickPlayerTextDraw, and in a ShowPlayerDialog.
The trouble is that when I click once to place the ShowPlayerDialog and I cancel, I can click anywhere on the screen (Not the exact spot so) it will the ShowPlayerDialog...
pawn Код:
public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
{
if(_:playertextid != INVALID_TEXT_DRAW)
{
if(playertextid == Textdraw0[playerid])
{
CancelSelectTextDraw(playerid);
PlayerTextDrawHide(playerid, Textdraw0[playerid]);
PlayerTextDrawHide(playerid, Textdraw1[playerid]);
PlayerTextDrawHide(playerid, Textdraw2[playerid]);
}
if(playertextid == Textdraw1[playerid])
{
return ShowPlayerDialog(playerid, 0, DIALOG_STYLE_INPUT, "Title.", "Text", "Ok", "Quit");
}
}
return 1;
}