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
#2

You need to use OnPlayerClickTextDraw() to detect this if(_layertextid != INVALID_TEXT_DRAW)
Reply
#3

I use PlayerTextDraw...
Reply
#4

upp..
Reply
#5

.................
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)