[AJUDA]Attach3DTextLabelToPlayer
#1

Galera o problema й o seguinte,o texto em cima do Player nгo estб aparecendo,tentei varias formas das outras formas apareciam mas nгo deletava depois,gostaria que me ajudassem resolve o problema,jб usei Search mas nada encontrei.
pawn Код:
forward ProcuradoPlayer(playerid);
public ProcuradoPlayer(playerid)
{
    if(WantedPoints[playerid] != 0)
    {
       ProcuradoText = Create3DTextLabel( "~~ Procurado ~~", COLOR_RED, 0.0, 0.0, 0.0, 60.0, 0, 1 );
       Attach3DTextLabelToPlayer(ProcuradoText, playerid, 0.0, 0.0, 2.0);
    }
    if(WantedPoints[playerid] == 0)
    {
       DeletePlayer3DTextLabel(playerid,PlayerText3D:ProcuradoText);
    }
    return 1;
}
Reply
#2

Sу percebi uma coisa errada nesse cуdigo.

Vocк estб criando como 3D normal e deletando como Player3D.
Reply
#3

pawn Код:
forward ProcuradoPlayer(playerid);
public ProcuradoPlayer(playerid)
{
    if(WantedPoints[playerid] != 0)
    {
       ProcuradoText = CreatePlayer3DTextLabel( "~~ Procurado ~~", COLOR_RED, 0.0, 0.0, 0.0, 60.0, 0, 1 );
       Attach3DTextLabelToPlayer(ProcuradoText, playerid, 0.0, 0.0, 2.0);
    }
    if(WantedPoints[playerid] == 0)
    {
       DeletePlayer3DTextLabel(playerid,PlayerText3D:ProcuradoText);
    }
    return 1;
}
Reply
#4

tenta
pawn Код:
new Text3D: Procurado;
forward ProcuradoPlayer(playerid);
public ProcuradoPlayer(playerid)
{
    if(WantedPoints[playerid] != 0)
    {
       Procurado = CreatePlayer3DTextLabel( "~~ Procurado ~~", COLOR_RED, 0.0, 0.0, 0.0, 60.0, 0, 1 );
       Attach3DTextLabelToPlayer(Procurado, playerid, 0.0, 0.0, 2.0);
    }
    if(WantedPoints[playerid] == 0)
    {
       DeletePlayer3DTextLabel(playerid, Procurado);
    }
    return 1;
}
e onde vc ta pondo pra chamar essa callback?
Reply
#5

Quote:
Originally Posted by WINDOWNS7
Посмотреть сообщение
pawn Код:
forward ProcuradoPlayer(playerid);
public ProcuradoPlayer(playerid)
{
    if(WantedPoints[playerid] != 0)
    {
       ProcuradoText = CreatePlayer3DTextLabel( "~~ Procurado ~~", COLOR_RED, 0.0, 0.0, 0.0, 60.0, 0, 1 );
       Attach3DTextLabelToPlayer(ProcuradoText, playerid, 0.0, 0.0, 2.0);
    }
    if(WantedPoints[playerid] == 0)
    {
       DeletePlayer3DTextLabel(playerid,PlayerText3D:ProcuradoText);
    }
    return 1;
}
Quote:
Originally Posted by Lucas_Alemao
Посмотреть сообщение
tenta
pawn Код:
new Text3D: Procurado;
forward ProcuradoPlayer(playerid);
public ProcuradoPlayer(playerid)
{
    if(WantedPoints[playerid] != 0)
    {
       Procurado = CreatePlayer3DTextLabel( "~~ Procurado ~~", COLOR_RED, 0.0, 0.0, 0.0, 60.0, 0, 1 );
       Attach3DTextLabelToPlayer(Procurado, playerid, 0.0, 0.0, 2.0);
    }
    if(WantedPoints[playerid] == 0)
    {
       DeletePlayer3DTextLabel(playerid, Procurado);
    }
    return 1;
}
e onde vc ta pondo pra chamar essa callback?
Nenhum dos 2 vai dar certo, nгo se cria um Player3DText com:

pawn Код:
new Text3D:blablalba;
Й:

pawn Код:
new PlayerText3D:blablalba;
Reply
#6

Tenta

pawn Код:
forward ProcuradoPlayer(playerid);
public ProcuradoPlayer(playerid)
{
    if(WantedPoints[playerid] != 0)
    {
       new Text3D:text3D2 = Create3DTextLabel( "~~ Procurado ~~", COLOR_RED, 0.0, 0.0, 0.0, 60.0, 0, 1 );
       Attach3DTextLabelToPlayer(text3D2, playerid, 0.0, 0.0, 2.0);
    }
    if(WantedPoints[playerid] == 0)
    {
       DeletePlayer3DTextLabel(playerid,PlayerText3D:text3D2);
    }
    return 1;
}
Reply
#7

coloquei assim.

pawn Код:
forward ProcuradoPlayer(playerid);
public ProcuradoPlayer(playerid)
{
    if(WantedPoints[playerid] != 0)
    {
        ProcuradoP[playerid] = CreatePlayer3DTextLabel(playerid,"~~ PROCURADO ~~", 0xFF2800FF, 0, 0, 0, 50, 0, 1);
        Attach3DTextLabelToPlayer(ProcuradoP[playerid], playerid, 0.0, 0.0, 0.7);
    }
    if(WantedPoints[playerid] == 0)
    {
        DeletePlayer3DTextLabel(playerid, PlayerText3D:ProcuradoP[playerid]);
    }
    return 1;
}
estб dando 1 erro ainda


Код:
BGS.pwn(51044) : warning 213: tag mismatch
Linha>
pawn Код:
Attach3DTextLabelToPlayer(ProcuradoP[playerid], playerid, 0.0, 0.0, 0.7);
Reply
#8

vocк crio a variavel
pawn Код:
new ProcuradoP[MAX_PLAYERS];
??
Reply
#9

Quote:
Originally Posted by Lucas_Alemao
Посмотреть сообщение
vocк crio a variavel
pawn Код:
new ProcuradoP[MAX_PLAYERS];
??
obvio.
new PlayerText3D:ProcuradoP[MAX_PLAYERS];
Reply
#10

Bolinha_ProJogos

Tenta aquele que te passei ali em cima
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)