Keys & Selecting textdraws
#1

Why doesn't this work?

pawn Code:
if ( PRESSED ( KEY_YES ) ) // Initiate the Dashboard!
    {
        if( accViewing [ playerid ] == 0 )  // They're not looking at anything else!
        {
            ShowPlayerDashboard ( playerid ), accViewing [ playerid ] = 1;
            SelectTextDraw( playerid, 0xC90411FF );
        }
           
        else return false;
    }
   
    if ( PRESSED ( KEY_NO ) ) // Hide the Dashboard!
    {
        if( accViewing [ playerid ] == 1 ) // They have the dashboard open already!
        {
            HidePlayerDashboard ( playerid ), accViewing [ playerid ] = 0;
            CancelSelectTextDraw ( playerid );
        }
    }
You don't need ShowPlayerDashboard or HidePlayerDashboard to diagnose this problem, all they do is show/hide textdraws.

The problem is, once you hit Y (KEY_YES), you can't hit N until you hit escape and cancel the mouse selection.
Reply


Messages In This Thread
Keys & Selecting textdraws - by 2KY - 30.04.2012, 20:57
Re: Keys & Selecting textdraws - by Psymetrix - 30.04.2012, 21:22
Re: Keys & Selecting textdraws - by 2KY - 30.04.2012, 21:34
Re: Keys & Selecting textdraws - by MP2 - 30.04.2012, 21:55
Re: Keys & Selecting textdraws - by 2KY - 30.04.2012, 22:12
Re: Keys & Selecting textdraws - by CyNiC - 01.05.2012, 02:22

Forum Jump:


Users browsing this thread: 4 Guest(s)