Problem OnPlayerClickPlayerTextDraw.
#1

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...

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;
}
Help me please?
Reply


Messages In This Thread
Problem OnPlayerClickPlayerTextDraw. - by TheSy - 25.01.2014, 12:21
Re: Problem OnPlayerClickPlayerTextDraw. - by Pottus - 25.01.2014, 12:39
Re : Problem OnPlayerClickPlayerTextDraw. - by TheSy - 25.01.2014, 15:02
Re : Problem OnPlayerClickPlayerTextDraw. - by TheSy - 25.01.2014, 15:57
Re: Problem OnPlayerClickPlayerTextDraw. - by TheSy - 26.01.2014, 07:26

Forum Jump:


Users browsing this thread: 2 Guest(s)