[Ajuda] Textdraw nгo mostra.
#1

Bom, coloco a textdraw e ela nгo aparece ingame !

Procurado = TextDrawCreate(493.5 ,112 , "Procurado:");
TextDrawFont(Procurado , 1);
TextDrawLetterSize(Procurado , 0.5, 3.5);
TextDrawColor(Procurado , 0xffffffFF);
TextDrawSetOutline(Procurado , false);
TextDrawSetProportional(Procurado , true);
TextDrawSetShadow(Procurado , 1);
Reply
#2

vocк ponhou em ongamemodinit?
Reply
#3

Sim. quando estava desenvolvendo o gm eu coloquei tambem uma txd de um relogio e funcionou normal, para ser mais claro eu coloquei essa txd atй abaixo da txd do relogio...
Reply
#4

kra qer por o nome Procurado Em Cima ?
Si For e Mlhr Por Assim.

Nas Forward's
forward TextProcu();

Em OnGameModeInit
SetTimer("TextProcu", 3000, true);

No Final Da GM
public TextProcu()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
new string[256];
if(GetPlayerWantedLevel(i) > 0)
{
format(string,256,"**PROCURADO{FFFFFF}[%d]**",GetPlayerWantedLevel(i));
SetPlayerChatBubble(i,string, COLOR_RED, 100.0, 10000);
}
}
}
Reply
#5

nem presciso mais dhusdhusdsadsadsa
Reply
#6

Quote:
Originally Posted by -Rafinha_FusioN-
Посмотреть сообщение
kra qer por o nome Procurado Em Cima ?
Si For e Mlhr Por Assim.

Nas Forward's
forward TextProcu();

Em OnGameModeInit
SetTimer("TextProcu", 3000, true);

No Final Da GM
public TextProcu()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
new string[256];
if(GetPlayerWantedLevel(i) > 0)
{
format(string,256,"**PROCURADO{FFFFFF}[%d]**",GetPlayerWantedLevel(i));
SetPlayerChatBubble(i,string, COLOR_RED, 100.0, 10000);
}
}
}
Bom cara obrigado, mas isso й diferente do que eu quero, quero que ao invйs de estrelas colocar uma textdraw...





Jб uso isso quando o player dб /status :



Код:
format(string, sizeof(string), "Nivel de Procurado: %d", dini_Int(file, "Procurado"));
Ou seja, configurei meu gm para nгo adicionar "SetPlayerWantedLevel" mas sim o numero do level de procurado em "Procurado" dentro do arquivo da conta do player.
Reply
#7

Quote:
Originally Posted by Paulaosamp
Посмотреть сообщение
Bom cara obrigado, mas isso й diferente do que eu quero, quero que ao invйs de estrelas colocar uma textdraw...





Jб uso isso quando o player dб /status :



Код:
format(string, sizeof(string), "Nivel de Procurado: %d", dini_Int(file, "Procurado"));
Ou seja, configurei meu gm para nгo adicionar "SetPlayerWantedLevel" mas sim o numero do level de procurado em "Procurado" dentro do arquivo da conta do player.
mais as estrelas sao originais do GTA nao ?
Reply
#8

sim, mas elas so irao aparecer se SetPlayerWantedLevel for igual ou seperior a 1

@TOPIC

voce tem de usar TextDrawShowForPlayer ou TextDrawShowForAll
Reply
#9

As estrelas nгo irгo aparecer em algum momento. irei tentar aqui.
Reply
#10

Tб osso. nгo manjo muito TextDrawShowForPlayer, fiz os do level e estudo a uns tempos atras mas estou quebrando cabeзa novamente, tem como me ajudar com algo que me lembre como meche com TextDrawShowForPlayer ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)