Problem TextDraw.
#1

Hi.

I have a trouble with a textdraw.

I am a textdraw (Which works well) to be able to view player statistics.

However, I am a textraw order to close it (the textdraw So called "close"), but it does not close anything ...

pawn Код:
new PlayerText:Test12[MAX_PLAYERS];
In my command for show the textdraw:
pawn Код:
PlayerTextDrawShow(playerid, Test12[playerid]);
And in: OnPlayerClickPlayerTextDraw

pawn Код:
public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
{
    if(playertextid == Test12[playerid])
    {
        CancelSelectTextDraw(playerid);
    }
    PlayerTextDrawHide(playerid, Test0[playerid]);
    return 1;
}
Can you help me?
Reply
#2

PHP код:
if(playertextid == Test12[playerid])
{
    
PlayerTextDrawHide(playeridTest12[playerid]);
    
CancelSelectTextDraw(playerid);

Reply
#3

And also when the player makes escape (esc) after he still has the textdraw, and therefore can not do anything ...

EDIT: It's not work with your code....
Reply
#4

Can you help me?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)