Help on TextDraw
#1

I want to press the ESC, it would hide it to do TextDraw.
I need someone who knows about TextDraw help me.

P/s:
I'm sorry that I'm not good at English. And what I wrote all through ****** translate
Reply
#2

Here, a list of detectable keys: https://sampwiki.blast.hk/wiki/Keys
ESC is not one of those.
Reply
#3

If you're talking about pressing ESC while SelectTextDraw is enabled, check if the clicked TextDraw ID is invalid under OnPlayerClickTextDraw and then hide the desired TextDraws (use a variable to detect which set the player is interacting with).
Reply
#4

Can you give me an example code does not?
Reply
#5

Quote:
Originally Posted by SickAttack
Посмотреть сообщение
If you're talking about pressing ESC while SelectTextDraw is enabled, check if the clicked TextDraw ID is invalid under OnPlayerClick(Player)TextDraw and then hide the desired TextDraws (use a variable to detect which set the player is interacting with).
When I hide it when I use the command does not appear again
Reply
#6

pawn Код:
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
    if(_:clickedid == INVALID_TEXT_DRAW)
    {
        // Hide here
    }
    return 1;
}
Reply
#7

Quote:
Originally Posted by SickAttack
Посмотреть сообщение
pawn Код:
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
    if(_:clickedid == INVALID_TEXTDRAW_ID)
    {
        // Hide here
    }
    return 1;
}
Thank you. But The purpose of "_:" is used to doing ?
I use this
f(clickedid == INVALID_TEXT_DRAW)
Reply
#8

Quote:
Originally Posted by hoanduy
Посмотреть сообщение
Thank you. But The purpose of "_:" is used to doing ?
I use this
f(clickedid == INVALID_TEXT_DRAW)
Remove "Text:" tag.
Reply
#9

Sorry for providing half true information

Quote:
Originally Posted by SickAttack
Посмотреть сообщение
pawn Код:
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
    if(_:clickedid == INVALID_TEXTDRAW_ID)
    {
        // Hide here
    }
    return 1;
}
Does it just detect ESC or would the same happen if he pressed KEY_NO for example?
Reply
#10

Quote:
Originally Posted by [Bios]Marcel
Посмотреть сообщение
Sorry for providing half true information



Does it just detect ESC or would the same happen if he pressed KEY_NO for example?
ESC.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)