[Ajuda] TEXTDRAW
#1

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
Reply
#2

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

No caso OnPlayerSpawn.

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

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]); 
Reply
#4

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

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



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

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

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
Reply
#7

Me pasa ceu cistema de matutow?
Reply
#8

Код:
 

//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]);
Reply
#9

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]); 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)