Selectable TextDraw Not Work
#1

I click the textdraw but nothing happens.


new PlayerText:market1[MAX_PLAYERS];

public OnPlayerConnect(playerid)
{
market1[playerid] = CreatePlayerTextDraw(playerid, 220.000000, 164.733093, "Tabancalar");
PlayerTextDrawLetterSize(playerid, market1[playerid], 0.307500, 1.623333);
PlayerTextDrawTextSize(playerid, market1[playerid], 18.666667, 123.500000);
PlayerTextDrawAlignment(playerid, market1[playerid], 2);
PlayerTextDrawColor(playerid, market1[playerid], -1);
PlayerTextDrawUseBox(playerid, market1[playerid], true);
PlayerTextDrawBoxColor(playerid, market1[playerid], -5963521);
PlayerTextDrawSetShadow(playerid, market1[playerid], 0);
PlayerTextDrawSetOutline(playerid, market1[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, market1[playerid], 255);
PlayerTextDrawFont(playerid, market1[playerid], 2);
PlayerTextDrawSetProportional(playerid, market1[playerid], 1);
PlayerTextDrawSetSelectable(playerid, market1[playerid], true);
}

OnPlayerClickPlayerTextDraw(playerid, PlayerTextlayertextid)
{
if(playertextid == market1[playerid])
{
IsPlayerInSMGSelection[playerid] = false;
IsPlayerInTabancaSelection[playerid] = true;
IsPlayerInPompaliSelection[playerid] = false;
IsPlayerInTufekSelection[playerid] = false;
IsPlayerInEkipmanSelection[playerid] = false;
PlayerTextDrawHide(playerid, market1[playerid]);
PlayerTextDrawHide(playerid, market2[playerid]);
PlayerTextDrawHide(playerid, market3[playerid]);
PlayerTextDrawHide(playerid, market4[playerid]);
PlayerTextDrawHide(playerid, market5[playerid]);
PlayerTextDrawShow(playerid, market11[playerid]);
PlayerTextDrawShow(playerid, market12[playerid]);
PlayerTextDrawShow(playerid, market13[playerid]);
PlayerTextDrawSetString(playerid, market11[playerid], "Deagle");
PlayerTextDrawSetString(playerid, market12[playerid], "9mm");
PlayerTextDrawSetString(playerid, market13[playerid], "S-9mm");
}
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys & KEY_YES)
{
PlayerTextDrawShow(playerid, market0[playerid]);
PlayerTextDrawShow(playerid, market1[playerid]);
PlayerTextDrawShow(playerid, market2[playerid]);
PlayerTextDrawShow(playerid, market3[playerid]);
PlayerTextDrawShow(playerid, market4[playerid]);
PlayerTextDrawShow(playerid, market5[playerid]);
PlayerTextDrawShow(playerid, market6[playerid]);
PlayerTextDrawShow(playerid, market7[playerid]);
SelectTextDraw(playerid, C_Green);
}
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)