SA-MP Forums Archive
[Ajuda] TEXTDRAW - 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] TEXTDRAW (/showthread.php?tid=634930)



TEXTDRAW - Dimbalada - 29.05.2017

PHP код:
Textdraw[0] = TextDrawCreate(548.399597398.319946"RIO_LIFE");
TextDrawLetterSize(Textdraw[0], 0.5487992.204800);
TextDrawAlignment(Textdraw[0], 1);
TextDrawColor(Textdraw[0], -1);
TextDrawSetShadow(Textdraw[0], 0);
TextDrawSetOutline(Textdraw[0], 0);
TextDrawBackgroundColor(Textdraw[0], 255);
TextDrawFont(Textdraw[0], 1);
TextDrawSetProportional(Textdraw[0], 1);
TextDrawSetShadow(Textdraw[0], 0); 
Tipo botei essa textdraw tranquilo ai tipo ela nгo aparece no in game eu abro faзo login etc. mesmo assim nгo aparece


Re: TEXTDRAW - Relaxed - 29.05.2017

A textdraw deve ser chamada quando o player spawna...

No caso OnPlayerSpawn.

PHP код:
TextDrawShowForPlayer(playeridTextdraw[0]); 



Re: TEXTDRAW - Pequeno - 29.05.2017

Coloque na public OnGameModeInit


PHP код:
Textdraw[0] = TextDrawCreate(548.399597398.319946"RIO_LIFE");
TextDrawLetterSize(Textdraw[0], 0.5487992.204800);
TextDrawAlignment(Textdraw[0], 1);
TextDrawColor(Textdraw[0], -1);
TextDrawSetShadow(Textdraw[0], 0);
TextDrawSetOutline(Textdraw[0], 0);
TextDrawBackgroundColor(Textdraw[0], 255);
TextDrawFont(Textdraw[0], 1);
TextDrawSetProportional(Textdraw[0], 1);
TextDrawSetShadow(Textdraw[0], 0); 
Caso queria quer apareca o Textdraw quando o Jogador logar
coloque em OnPlayerConnect

PHP код:
TextDrawShowForPlayer(playeridTextdraw[0]); 
Se for para aparecer quando ele spawnar
coloque em OnPlayerSpawn

PHP код:
TextDrawShowForPlayer(playeridTextdraw[0]); 



Re: TEXTDRAW - Dimbalada - 29.05.2017

Eu coloquei mais nгo apareceu quando botei minha senha e entrei no jogo


Re: TEXTDRAW - Felpz - 29.05.2017

Estб colocando a seguinte funзгo?, Aqui funcionou !



Код:
new Text:Textdraw[1];

public OnPlayerSpawn(playerid)
{
    TextDrawShowForPlayer(playerid, Textdraw[0]);
}



Re: TEXTDRAW - zCyan - 30.05.2017

Quote:
Originally Posted by Dimbalada
Посмотреть сообщение
Eu coloquei mais nгo apareceu quando botei minha senha e entrei no jogo
Algo deve estб errado ai amigo, verifique ae


Re: TEXTDRAW - HeisenGiromB - 30.05.2017

Me pasa ceu cistema de matutow?


Re: TEXTDRAW - zCyan - 30.05.2017

Код:
 

//Inicio gm

new Text:Textdraw[0];

//OnGameModeInit

Textdraw[0] = TextDrawCreate(548.399597, 398.319946, "RIO_LIFE"); 
TextDrawLetterSize(Textdraw[0], 0.548799, 2.204800); 
TextDrawAlignment(Textdraw[0], 1); 
TextDrawColor(Textdraw[0], -1); 
TextDrawSetShadow(Textdraw[0], 0); 
TextDrawSetOutline(Textdraw[0], 0); 
TextDrawBackgroundColor(Textdraw[0], 255); 
TextDrawFont(Textdraw[0], 1); 
TextDrawSetProportional(Textdraw[0], 1); 
TextDrawSetShadow(Textdraw[0], 0);

//OnPlayerSpawn

TextDrawShowForPlayer(playerid, Textdraw[0]);



Re: TEXTDRAW - Laarky - 30.05.2017

Mano, vocк jб estб usando outra textdraw com a mesma variбvel e provalmente estб destruindo ela

Soluзгo: muda o nome da variбvel

Topo GM :
PHP код:
new Text:Laarky[1]; 


PHP код:
Laarky0 TextDrawCreate(548.399597398.319946"RIO_LIFE"); 
TextDrawLetterSize(Laarky00.5487992.204800); 
TextDrawAlignment(Laarky01); 
TextDrawColor(Laarky0, -1); 
TextDrawSetShadow(Laarky00); 
TextDrawSetOutline(Laarky00); 
TextDrawBackgroundColor(Laarky0255); 
TextDrawFont(Laarky01); 
TextDrawSetProportional(Laarky01); 
TextDrawSetShadow(Laarky00); 


Outra soluзгo

Vб em seu OnPlayerSpawn e delete

PHP код:
TextDrawHideForPlayer(playeridTextdraw0[playerid]);