TextDraw not hiding
#1

Hi all, I made a textdraw yesterday...I tried to test it but I don't know what happens or what is the problem..Here is The code
TextDraw
pawn Код:
stats[playerid] = CreatePlayerTextDraw(playerid, 309.999908, 141.466476, "Stats: Nick(ID)");
    PlayerTextDrawLetterSize(playerid, stats[playerid], 0.400000, 1.600000);
    PlayerTextDrawTextSize(playerid, stats[playerid], 0.000000, 295.000000);
    PlayerTextDrawAlignment(playerid, stats[playerid], 2);
    PlayerTextDrawColor(playerid, stats[playerid], 16711935);
    PlayerTextDrawUseBox(playerid, stats[playerid], 1);
    PlayerTextDrawBoxColor(playerid, stats[playerid], -16776961);
    PlayerTextDrawSetShadow(playerid, stats[playerid], 0);
    PlayerTextDrawSetOutline(playerid, stats[playerid], 0);
    PlayerTextDrawBackgroundColor(playerid, stats[playerid], 255);
    PlayerTextDrawFont(playerid, stats[playerid], 1);
    PlayerTextDrawSetProportional(playerid, stats[playerid], 1);
    PlayerTextDrawSetShadow(playerid, stats[playerid], 0);

    xex[playerid] = CreatePlayerTextDraw(playerid, 433.199920, 140.719909, "[X]");
    PlayerTextDrawLetterSize(playerid, xex[playerid], 0.400000, 1.600000);
    PlayerTextDrawTextSize(playerid, xex[playerid], 24.0, 96.000000);
    PlayerTextDrawAlignment(playerid, xex[playerid], 1);
    PlayerTextDrawColor(playerid, xex[playerid], -2147483393);
    PlayerTextDrawSetShadow(playerid, xex[playerid], 0);
    PlayerTextDrawSetOutline(playerid, xex[playerid], 1);
    PlayerTextDrawBackgroundColor(playerid, xex[playerid], -1);
    PlayerTextDrawFont(playerid, xex[playerid], 3);
    PlayerTextDrawSetProportional(playerid, xex[playerid], 1);
    PlayerTextDrawSetShadow(playerid, xex[playerid], 0);
    PlayerTextDrawSetSelectable(playerid, xex[playerid], true);

    nothing[playerid] = CreatePlayerTextDraw(playerid, 163.599884, 160.880035, "_");
    PlayerTextDrawLetterSize(playerid, nothing[playerid], 0.330399, 18.952539);
    PlayerTextDrawTextSize(playerid, nothing[playerid], 457.400299, 0.000000);
    PlayerTextDrawAlignment(playerid, nothing[playerid], 1);
    PlayerTextDrawColor(playerid, nothing[playerid], -1);
    PlayerTextDrawUseBox(playerid, nothing[playerid], 1);
    PlayerTextDrawBoxColor(playerid, nothing[playerid], 255);
    PlayerTextDrawSetShadow(playerid, nothing[playerid], 0);
    PlayerTextDrawSetOutline(playerid, nothing[playerid], 0);
    PlayerTextDrawBackgroundColor(playerid, nothing[playerid], 255);
    PlayerTextDrawFont(playerid, nothing[playerid], 1);
    PlayerTextDrawSetProportional(playerid, nothing[playerid], 1);
    PlayerTextDrawSetShadow(playerid, nothing[playerid], 0);
Command for showing textdraw.
pawn Код:
CMD:showtextdraw(playerid, params[])
{
     PlayerTextDrawShow(playerid, stats[playerid]);
     PlayerTextDrawShow(playerid, xex[playerid]);
     SelectTextDraw(playerid, 0x00FF00FF);
     PlayerTextDrawShow(playerid, nothing[playerid]);
    return 1;
}
OnPlayerClickPlayerTextDraw
pawn Код:
public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
{
    printf("Player TextDraw ID %d", playertextid);
    if(playertextid == xex[playerid])
    {
     PlayerTextDrawHide(playerid, stats[playerid]);
     PlayerTextDrawHide(playerid, xex[playerid]);
     PlayerTextDrawHide(playerid, nothing[playerid]);
    }
when I move my mouse over X it changes colour but when I click on it nothing happens.
Reply


Messages In This Thread
TextDraw not hiding - by LazyB0y - 14.08.2015, 18:21
Re: TextDraw not hiding - by MichaelJones - 14.08.2015, 18:44
Re: TextDraw not hiding - by LazyB0y - 15.08.2015, 08:34
Re: TextDraw not hiding - by MarvinPWN - 15.08.2015, 08:53
Re: TextDraw not hiding - by LazyB0y - 15.08.2015, 10:31
Re: TextDraw not hiding - by LazyB0y - 16.08.2015, 10:38
Re: TextDraw not hiding - by MarvinPWN - 16.08.2015, 11:15
Re: TextDraw not hiding - by LazyB0y - 16.08.2015, 12:40

Forum Jump:


Users browsing this thread: 4 Guest(s)