[Ajuda] Text Draw Nгo Aparecere - 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] Text Draw Nгo Aparecere (
/showthread.php?tid=512736)
Text Draw Nгo Aparecere -
CrazyHelp - 12.05.2014
Galera Estou Criando Uma GM Do incio, Criei Umas TextDraw Para colocar, nгo da nenhum erro quando vo compila mas os text nao aparece, poderia me ajudar ?
Variavel
Em public OnGameModeInit()
pawn Код:
TextBR = TextDrawCreate(1.000000,437.000000, "~r~Black Blocks .Vs. Forca Tatica");
TextDrawUseBox(TextBR,1);
TextDrawBoxColor(TextBR,0x00000066);
TextDrawTextSize(TextBR,641.000000,0.000000);
TextDrawAlignment(TextBR,0);
TextDrawBackgroundColor(TextBR,0x000000ff);
TextDrawFont(TextBR,3);
TextDrawLetterSize(TextBR,0.399999,1.100000);
TextDrawColor(TextBR,0xffffffff);
TextDrawSetOutline(TextBR,1);
TextDrawSetProportional(TextBR,1);
TextDrawSetShadow(TextBR,1);
Em public OnGameModeExit()
pawn Код:
TextDrawHideForAll(TextBR);
TextDrawDestroy(TextBR);
Em public OnPlayerSpawn(playerid)
pawn Код:
for(new i; i < MAX_PLAYERS; i ++)
{
if(IsPlayerConnected(i))
{
TextDrawShowForPlayer(i, TextBR);
}
}
Coloquei tudo certo, porem nao aparece !
Re: Text Draw Nгo Aparecere -
DannielCooper - 12.05.2014
Pra que esse loop ? '-'
E nгo precisa destruir a TextDraw em OnPlayerDisconnect nгo, se ele vai sair й lуgico que nгo vai ver mais nй..
Re: Text Draw Nгo Aparecere -
SwaaTxTaawS - 12.05.2014
pawn Код:
//Sou iniciante, mas isso deve dar.
//Coloque so isso
//Topo do GM
new Text:TextBR;
//Em public OnGameModeInit()
TextBR = TextDrawCreate(1.000000,437.000000, "~r~Black Blocks .Vs. Forca Tatica");
TextDrawUseBox(TextBR,1);
TextDrawBoxColor(TextBR,0x00000066);
TextDrawTextSize(TextBR,641.000000,0.000000);
TextDrawAlignment(TextBR,0);
TextDrawBackgroundColor(TextBR,0x000000ff);
TextDrawFont(TextBR,3);
TextDrawLetterSize(TextBR,0.399999,1.100000);
TextDrawColor(TextBR,0xffffffff);
TextDrawSetOutline(TextBR,1);
TextDrawSetProportional(TextBR,1);
TextDrawSetShadow(TextBR,1);
//Na public OnPlayerConnect(playerid)
TextDrawShowForPlayer(playerid, TextBR);