SA-MP Forums Archive
[Ajuda] Player TextDraw Selecionavel - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Player TextDraw Selecionavel (/showthread.php?tid=503483)



Player TextDraw Selecionavel - Adejair - 29.03.2014

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;
}



Re: Player TextDraw Selecionavel - Sky™ - 29.03.2014

cade o
pawn Код:
ShowPlayerTextDraw
?


Re: Player TextDraw Selecionavel - Adejair - 29.03.2014

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


Re: Player TextDraw Selecionavel - PT - 29.03.2014

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


Re: Player TextDraw Selecionavel - Adejair - 29.03.2014

Mesmo Asim PT Nгo Funcionou ;(


Re: Player TextDraw Selecionavel - PT - 29.03.2014

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;
}



Re: Player TextDraw Selecionavel - Adejair - 29.03.2014

Nгo Funcionou o.O

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


Re: Player TextDraw Selecionavel - Adejair - 30.03.2014

@24 Horas

Tentei deixar Todas Selecionaveis mas mesmo asim ... '


Re: Player TextDraw Selecionavel - Lipe_Stronda - 30.03.2014

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


Re: Player TextDraw Selecionavel - yNexus - 30.03.2014

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;