Text Draw -
Thompsoon - 19.04.2015
Eu tenho o Text Draw criado certinho
Mas agora eu n sei como usar o:
TextDrawShowForPlayer(playerid, Textdraw_Name);
ou
TextDrawShowForAll(Textdraw_Name)
Alguйm pode ajudar ? Desde ja Muito Obrigado
Re: Text Draw -
#Luca[S]. - 19.04.2015
PHP код:
TextDrawShowForPlayer(playerid, Textdraw_Name);
Vai apenas para um player.
PHP код:
TextDrawShowForAll(Textdraw_Name)
Todos os players conectado.
Abraзos.
Resposta: ERRO -
Thompsoon - 19.04.2015
error 017: undefined symbol "Textdraw1"
Eu botei o nome do TextDraw e da esse erro
pawn Код:
public OnPlayerConnect(playerid)
{
TextDrawShowForAll(Textdraw1);
return 1;
}
Re: Text Draw -
Dayvison_ - 19.04.2015
Quote:
Originally Posted by Thompsoon
Eu boto isso aonde ?
|
No local em que quiser que o player veja ela .-., exemplo um comando ao apertar selecionar um item de uma TextDraw
Re: Text Draw -
#Luca[S]. - 19.04.2015
Por exemplo em um comando, para um player ver:
PHP код:
CMD:vertexto(playerid)
{
TextDrawShowForPlayer(playerid, Textdraw_Name);
return 1;
}
Ou um comando para todos os players on ver:
PHP код:
CMD:todosver(playerid)
{
TextDrawShowForAll(Textdraw_Name)
return 1;
}
Quote:
Originally Posted by Thompsoon
error 017: undefined symbol "Textdraw1"
Eu botei o nome do TextDraw e da esse erro
pawn Код:
public OnPlayerConnect(playerid) { TextDrawShowForAll(Textdraw1); return 1; }
|
Vocк deve ter criado a TextDraw por exemplo:
PHP код:
new Text:Textdraw1;
public OnGameModeInit()
{
Textdraw1 = CreateTextdraw........
return 1;
}
O erro quйr dizer, que a variavel nгo existe!
Re: Text Draw -
Thompsoon - 19.04.2015
pawn Код:
new Text:Textdraw1;
public OnFilterScriptInit()
{
Textdraw1 = TextDrawCreate(461.5 ,451 , "192.168.0.12");
TextDrawFont(Textdraw1 , 3);
TextDrawLetterSize(Textdraw1 , 0.8, 5.6000000000000005);
TextDrawColor(Textdraw1 , 0xff0000FF);
TextDrawSetOutline(Textdraw1 , false);
TextDrawSetProportional(Textdraw1 , true);
TextDrawSetShadow(Textdraw1 , 1);
return 1;
}
Em baixo:
pawn Код:
public OnPlayerConnect(playerid)
{
TextDrawShowForAll(Textdraw1);
return 1;
}
Re: Text Draw -
#Luca[S]. - 19.04.2015
Vocк estб fazendo em sua GM, ou em um FS?
Se for na GM, mude o cуdigo para dentro da public
OnGameModeInit.
Re: Text Draw -
Thompsoon - 19.04.2015
Eu tava fazendo em FS mas ai eu botei em OnGameModeInit e deu '-'
AEEEEE MLK CONSEGUI VLW AEEEEE
Re: Text Draw -
n0minal - 19.04.2015
Quote:
public OnPlayerConnect(playerid)
{
TextDrawShowForAll(Textdraw1);
return 1;
}
|
Toda vez que um player se conectar a textdraw vai aparecer
pra todos, verifica se й isso mesmo que vocк quer...