Ajuda com label -
brunovs2011 - 07.05.2014
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;
}
Re: Ajuda com label aq '-' -
arakuta - 07.05.2014
Tem certeza que nгo aparece?
Vocк nгo tem como ver uma 3DText que estб em vocк. Apenas outros jogadores verгo.
Re: Ajuda com label aq '-' -
brunovs2011 - 07.05.2014
testei com meu amigo ^^ to put# aq pq n ta dando ='[ a n ser q n precise do MAX_PLAYERS .... sera?
Re: Ajuda com label aq '-' -
brunovs2011 - 07.05.2014
n deu '-'
Re: Ajuda com label aq '-' -
arakuta - 07.05.2014
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.
Re: Ajuda com label aq '-' -
BreakDriFT - 07.05.2014
Tem uma funзгo especнfica para jogadores.
https://sampwiki.blast.hk/wiki/CreatePlayer3DTextLabel
Ah, dб no mesmo :v
Re: Ajuda com label aq '-' -
arakuta - 07.05.2014
Quote:
Originally Posted by BreakDriFT
|
Nгo dб no mesmo. Essa funзгo й per-player e sу й vista por um ъnico jogador, enquanto a Create3DTextLabel й vista por todos.
Re: Ajuda com label aq '-' -
BreakDriFT - 07.05.2014
Й percebi agora

, nem sei mais sobre as funзхes do sa:mp :b
Re: Ajuda com label aq '-' -
brunovs2011 - 07.05.2014
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 '-'
Re: Ajuda com label aq '-' -
brunovs2011 - 07.05.2014
#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;
}