Question

new PlayerText:Passport_PTD[MAX_PLAYERS][1];

public OnPlayerConnect(playerid)
{
    Passport_PTD[playerid][0] = CreatePlayerTextDraw(playerid, 366.6666324.5851"SIGN HERE");
    PlayerTextDrawLetterSize(playerid, Passport_PTD[playerid][0], 0.20001.2000);
    PlayerTextDrawTextSize(playerid, Passport_PTD[playerid][0], 30.000073.0000);
    PlayerTextDrawAlignment(playerid, Passport_PTD[playerid][0], 3);
    PlayerTextDrawColor(playerid, Passport_PTD[playerid][0], -505290241);
    PlayerTextDrawSetOutline(playerid, Passport_PTD[playerid][0], 1);
    PlayerTextDrawBackgroundColor(playerid, Passport_PTD[playerid][0], 255);
    PlayerTextDrawFont(playerid, Passport_PTD[playerid][0], 1);
    PlayerTextDrawSetProportional(playerid, Passport_PTD[playerid][0], 1);
    PlayerTextDrawSetShadow(playerid, Passport_PTD[playerid][0], 0);
    PlayerTextDrawSetSelectable(playerid, Passport_PTD[playerid][0], true);
}

public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
{
    if(playertextid == Passport_PTD[playerid][0])
    {
         SendClientMessage(playerid, 0xFFFFFFAA"Клик");
         return 1;
    }
    return 0;
}

CMD:test(playerid)
{
    PlayerTextDrawShow(playerid, Passport_PTD[playerid][0]);
    SelectTextDraw(playerid, 0x87CBFFFF);
    return 1;
}

прощу помощи! текстдрав не кликабельный

Edited by veronika

Заметка от keyl , создано

3.1. Заголовок темы должен отражать основную суть темы. Темы без информативного заголовка будут переименовываться, а автор может быть предупрежден (на усмотрение члена администрации). 

Устное предупреждение.

Share this post


Link to post

4 answers to this question

  • 0

Текстдрав и мышка показываются? 

Share this post


Link to post
  • 0
Цитата

TextDrawShowForPlayer(playerid, Passport_PTD[playerid][0]);
SelectTextDraw(playerid, -1);



Попробуйте, не уверен что поможет.

Edited by Vladislavspawn

Share this post


Link to post
  • 0

Советую делать всё через эту программу (кликабельно и не реклама). Там можно настроить сразу кликабельность и всё остальное, а так же лёгкий экспорт в .pwn

Share this post


Link to post
  • 0
PlayerTextDrawTextSize(playerid, Passport_PTD[playerid][0], 30.000073.0000);

удали, и будет тебе счастье :)

Share this post


Link to post
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • maksimov maksim
      By maksimov maksim
      Как сделать команду где к примеру /jail где можно было бы выдавать наказания по id и по нику игрока?