[Ajuda] Ajuda com label
#1

Bom to tentando criar com q aparesa o nome do clan em cima do player como label... mais nunca dava entao resolvi criar um comando pra teste e nem ele deu..... (e tudo compila certinho '-')
pawn Код:
new Text3D:NomeClan[MAX_PLAYERS]; //isso no topo do gm ^^
CMD:label(playerid)
{

    NomeClan[playerid] = Create3DTextLabel("teste", 0x008080FF,0.0,0.0,0.0,0.0,0);
    Attach3DTextLabelToPlayer(NomeClan[playerid], playerid, 0.0 , 0.0 , 0.7 );
    return 1;
}
Reply
#2

Tem certeza que nгo aparece?

Vocк nгo tem como ver uma 3DText que estб em vocк. Apenas outros jogadores verгo.
Reply
#3

testei com meu amigo ^^ to put# aq pq n ta dando ='[ a n ser q n precise do MAX_PLAYERS .... sera?
Reply
#4

n deu '-'
Reply
#5

Faz um debug.

pawn Код:
CMD:label(playerid)
{
    NomeClan[playerid] = Create3DTextLabel("teste", 0x008080FF,0.0,0.0,0.0,0.0,0);
    new t = Attach3DTextLabelToPlayer(NomeClan[playerid], playerid, 0.0 , 0.0 , 0.7);
    SendClientMessage(playerid,-1,t ? ("Text Attached") : ("Text Not Attached"));        
    return 1;
}
E me diz o resultado.
Reply
#6

Tem uma funзгo especнfica para jogadores.


https://sampwiki.blast.hk/wiki/CreatePlayer3DTextLabel



Ah, dб no mesmo :v
Reply
#7

Quote:
Originally Posted by BreakDriFT
Посмотреть сообщение
Tem uma funзгo especнfica para jogadores.


https://sampwiki.blast.hk/wiki/CreatePlayer3DTextLabel



Ah, dб no mesmo :v
Nгo dб no mesmo. Essa funзгo й per-player e sу й vista por um ъnico jogador, enquanto a Create3DTextLabel й vista por todos.
Reply
#8

Й percebi agora , nem sei mais sobre as funзхes do sa:mp :b
Reply
#9

Quote:
Originally Posted by arakuta
Посмотреть сообщение
Faz um debug.

pawn Код:
CMD:label(playerid)
{
    NomeClan[playerid] = Create3DTextLabel("teste", 0x008080FF,0.0,0.0,0.0,0.0,0);
    new t = Attach3DTextLabelToPlayer(NomeClan[playerid], playerid, 0.0 , 0.0 , 0.7);
    SendClientMessage(playerid,-1,t ? ("Text Attached") : ("Text Not Attached"));        
    return 1;
}
E me diz o resultado.
TESTEI com meu amigo e aparecia Text Attached mas n aparecia teste na cabeзa do player '-'
Reply
#10

#RESOLVIDO OBRIGADO ^^ coloquei um loop e pah .-. a public fico assim

pawn Код:
public NomeCla(playerid)
{
    for(new i=0; i<MAX_PLAYERS; i++)
    {
        new stringsh[50];
        format(stringsh, sizeof(stringsh), "clas/%s.ini", Nome(i)); //aq  
        if(DOF2_FileExists(stringsh))
        {
           new PT[50];
           format(PT, sizeof(PT), "%s", DOF2_GetString(stringsh, "cla"));
           SetPlayerChatBubble(i,PT, Vermelho, 100.0, 10000);
        }
    }
    return 1;  
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)