SA-MP Forums Archive
Problem TextDraw. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Problem TextDraw. (/showthread.php?tid=484025)



Problem TextDraw. - JacobWilkerson - 28.12.2013

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?


Re: Problem TextDraw. - HardRock - 28.12.2013

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




Re : Problem TextDraw. - JacobWilkerson - 28.12.2013

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....


Re : Problem TextDraw. - JacobWilkerson - 28.12.2013

Can you help me?