[Help] Detecting keys while in textdraw selection mode
#1

The point is that I want to detect the KEY_JUMP while in textdraw selection mode, but can not detect any key, while it is turned in SelectTextdraw(), when not turned all fine and detects key.

Код:
public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
{
     if(playertextid == someexample)
     {
          // dalji kod
     }
     return true;
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
     if(PRESSED(KEY_JUMP))
     {
            RegistrationData[playerid][YearsNumber]--;
            format(years, sizeof years, "%d", RegistrationData[playerid][YearsNumber]);
            PlayerTextDrawSetString(playerid, RegisterTextdraw[playerid][7], years);
     }
     return true;
}
It is necessary that it is possible to detect key while selecting textdraws.
It is feasible because iPleomax's works on the same principle, it is possible to detect key while selecting on.
Reply
#2

bump
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)