[Ajuda] Deixar Texto na Tela
#1

Como eu faзo para colocar um texto na tela, e ele ficar lб, sem sair, seria esses textos aqui:

pawn Код:
Textdraw0 = TextDrawCreate(87.000000, 326.000000, "Roleplay");
TextDrawAlignment(Textdraw0, 2);
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 1);
TextDrawLetterSize(Textdraw0, 0.500000, 1.000000);
TextDrawColor(Textdraw0, -45931777);
TextDrawSetOutline(Textdraw0, 0);
TextDrawSetProportional(Textdraw0, 1);
TextDrawSetShadow(Textdraw0, 1);

Textdraw1 = TextDrawCreate(62.000000, 316.000000, "Brasil");
TextDrawBackgroundColor(Textdraw1, 255);
TextDrawFont(Textdraw1, 2);
TextDrawLetterSize(Textdraw1, 0.360000, 1.200000);
TextDrawColor(Textdraw1, 1650615039);
TextDrawSetOutline(Textdraw1, 0);
TextDrawSetProportional(Textdraw1, 1);
TextDrawSetShadow(Textdraw1, 1);
Reply
#2

https://sampwiki.blast.hk/wiki/TextDrawShowForPlayer
https://sampwiki.blast.hk/wiki/TextDrawHideForPlayer
https://sampwiki.blast.hk/wiki/TextDrawShowForAll
https://sampwiki.blast.hk/wiki/TextDrawHideForAll
Reply
#3

Eu jб sei isso, sу to com dificuldade para ligar estas funзхes
Reply
#4

Vocк sabe ler? '-'
Reply
#5

No topo:
Quote:

new Text:Textdraw0;
new Text:Textdraw1;

No public OnFilterScriptInit (se for um FS)
Ou public OnGameModeInit
Quote:

Textdraw0 = TextDrawCreate(87.000000, 326.000000, "Roleplay");
TextDrawAlignment(Textdraw0, 2);
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 1);
TextDrawLetterSize(Textdraw0, 0.500000, 1.000000);
TextDrawColor(Textdraw0, -45931777);
TextDrawSetOutline(Textdraw0, 0);
TextDrawSetProportional(Textdraw0, 1);
TextDrawSetShadow(Textdraw0, 1);

Textdraw1 = TextDrawCreate(62.000000, 316.000000, "Brasil");
TextDrawBackgroundColor(Textdraw1, 255);
TextDrawFont(Textdraw1, 2);
TextDrawLetterSize(Textdraw1, 0.360000, 1.200000);
TextDrawColor(Textdraw1, 1650615039);
TextDrawSetOutline(Textdraw1, 0);
TextDrawSetProportional(Textdraw1, 1);
TextDrawSetShadow(Textdraw1, 1);

No public OnPlayerConnect
Quote:

TextDrawShowForPlayer(playerid, Textdraw0);
TextDrawShowForPlayer(playerid, Textdraw1);

No public OnFilterScriptExit() (se for um FS)
Ou public OnGameModeExit()
Quote:

TextDrawDestroy(Textdraw0);
TextDrawDestroy(Textdraw1);

Reply
#6

Quote:
Originally Posted by MatheusgabrielDS
Посмотреть сообщение
Eu jб sei isso, sу to com dificuldade para ligar estas funзхes
Tem exemplos nos links que te mandei, jб tentou ler...?
Reply
#7

Erro:

Код:
C:\Users\Mateus Gabriel\Desktop\Nova pasta\filterscripts\speedo.pwn(24) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.
Linha:

pawn Код:
Textdraw0 = TextDrawCreate(87.000000, 326.000000, "Roleplay");
   TextDrawAlignment(Textdraw0, 2);
   TextDrawBackgroundColor(Textdraw0, 255);
   TextDrawFont(Textdraw0, 1);
   TextDrawLetterSize(Textdraw0, 0.500000, 1.000000);
   TextDrawColor(Textdraw0, -45931777);
   TextDrawSetOutline(Textdraw0, 0);
   TextDrawSetProportional(Textdraw0, 1);
   TextDrawSetShadow(Textdraw0, 1);
Reply
#8

isso й warning na identacao coloque assim:
Код:
     Textdraw0 = TextDrawCreate(87.000000, 326.000000, "Roleplay");
     TextDrawAlignment(Textdraw0, 2);
     TextDrawBackgroundColor(Textdraw0, 255);
     TextDrawFont(Textdraw0, 1);
     TextDrawLetterSize(Textdraw0, 0.500000, 1.000000);
     TextDrawColor(Textdraw0, -45931777);
     TextDrawSetOutline(Textdraw0, 0);
     TextDrawSetProportional(Textdraw0, 1);
     TextDrawSetShadow(Textdraw0, 1);
So coloque assim alinhado um em baixo do outro:
exemplo:
Код:
        Break
        Break
Outro exemplo:
Код:
Break
        Break
Assim /\ ira dar Loose esse warning ai =)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)