[Ajuda] Player TextDraw Selecionavel
#1

Fis de Tudo , Mбs o box Abaixo nгo fica selecionavel nen a pau '

pawn Код:
Cadastro8 = CreatePlayerTextDraw(playerid,384.000000, 175.000000, "_");
PlayerTextDrawBackgroundColor(playerid,Cadastro8, 255);
PlayerTextDrawFont(playerid,Cadastro8, 1);
PlayerTextDrawLetterSize(playerid,Cadastro8, 0.500000, 1.200000);
PlayerTextDrawColor(playerid,Cadastro8, -1);
PlayerTextDrawSetOutline(playerid,Cadastro8, 0);
PlayerTextDrawSetProportional(playerid,Cadastro8, 1);
PlayerTextDrawSetShadow(playerid,Cadastro8, 1);
PlayerTextDrawUseBox(playerid,Cadastro8, 1);
PlayerTextDrawBoxColor(playerid,Cadastro8, -168430320);
PlayerTextDrawTextSize(playerid,Cadastro8, 254.000000, 10.000000);
PlayerTextDrawSetSelectable(playerid,Cadastro8, 1);
pawn Код:
public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
{
 if(playertextid == Cadastro8)
 {
     SendClientMessage(playerid,-1," Olб ");
 }
    return 1;
}
pawn Код:
CMD:teste(playerid)
{
SelectTextDraw(playerid, 0xC0C0C0AA);
return 1;
}
Reply
#2

cade o
pawn Код:
ShowPlayerTextDraw
?
Reply
#3

pawn Код:
stock MostrarCadastro(playerid)
{
    PlayerTextDrawShow(playerid,Cadastro8);
    return 1;
}
Botei em uma Stock ...'
Botei em OnPlayerConnect ... MostrarCadastro(playerid); ..
Reply
#4

vc ta criando a textdraw errado

a variavel tem de ter o parametro [playerid]..

olha aqui como tem de ser: https://sampwiki.blast.hk/wiki/CreatePlayerTextDraw
Reply
#5

Mesmo Asim PT Nгo Funcionou ;(
Reply
#6

pawn Код:
// OnPlayerConnect
Cadastro8[playerid] = CreatePlayerTextDraw(playerid,384.000000, 175.000000, "_");
PlayerTextDrawBackgroundColor(playerid,Cadastro8[playerid], 255);
PlayerTextDrawFont(playerid,Cadastro8[playerid], 1);
PlayerTextDrawLetterSize(playerid,Cadastro8[playerid], 0.500000, 1.200000);
PlayerTextDrawColor(playerid,Cadastro8[playerid], -1);
PlayerTextDrawSetOutline(playerid,Cadastro8[playerid], 0);
PlayerTextDrawSetProportional(playerid,Cadastro8[playerid], 1);
PlayerTextDrawSetShadow(playerid,Cadastro8[playerid], 1);
PlayerTextDrawUseBox(playerid,Cadastro8[playerid], 1);
PlayerTextDrawBoxColor(playerid,Cadastro8[playerid], -168430320);
PlayerTextDrawTextSize(playerid,Cadastro8[playerid], 254.000000, 10.000000);
PlayerTextDrawSetSelectable(playerid,Cadastro8[playerid], true);

public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
{
    if(playertextid == Cadastro8[playerid])
    {
        SendClientMessage(playerid,-1," Olб ");
    }
    return 1;
}

// comando

CMD:teste(playerid)
{
    PlayerTextDrawShow(playerid, Cadastro8[playerid]);
    SelectTextDraw(playerid, 0xFFCB5CFF);
    return 1;
}
tem de funcionar

@ edit

tenta assim

pawn Код:
public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
{
    if(_:playertextid != INVALID_TEXT_DRAW)
    {
        if(playertextid == Cadastro8[playerid])
        {
            SendClientMessage(playerid,-1," Olб ");
        }
    }
    return 1;
}
Reply
#7

Nгo Funcionou o.O

@Edit Passo o mause por cima, clico ... nгo apareзe nada ...
Reply
#8

@24 Horas

Tentei deixar Todas Selecionaveis mas mesmo asim ... '
Reply
#9

#up que estou com o mesmo problema...
tб osso ..
Reply
#10

PHP код:
public OnPlayerClickPlayerTextDraw playerid PlayerText:playertextid )
{
    if(
_:playertextid == INVALID_TEXT_DRAW)
    return 
CallLocalFunction("OnPlayerClickPlayerTextDraw""ii"playeridINVALID_TEXT_DRAW);

    else if(
playertextid == Cadastro8[playerid])
    {
        
SendClientMessage(playerid,-1," Olб ");
    }
    return 
0;

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)