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



TextDrawSetString - Sloww - 10.03.2017

Galera, desculpe eu vir aqui hoje denovo kkk
alguйm tem um exemplo de uso com TextDrawSetString?
tipo queria colocar TextDrawSetString em um textdraw para colocar a senha do player
Password:******* colocar no Textdraw e nгo em DIALOG_STYLE_PASSWORD
desde jб Agradeзo!


Re: TextDrawSetString - BarBePie - 10.03.2017

PHP код:
for(new istrlen(inputtext); i++){ inputtext[i] = ']'; }
    
PlayerTextDrawSetString(playeridBarBieinputtext); 
Para que isso aconteзa a fonte de sua textdraw precisa estar em 2


Re: TextDrawSetString - Sloww - 10.03.2017

Para isso funcionar tenho que remover o sistema DIALOG e colocar esse?


Re: TextDrawSetString - Sloww - 10.03.2017

public OnPlayerConnect(playerid)
{
for(new i; i < strlen(inputtext); i++) {inputtext[i] = ']'}
PlayerTextDrawSetString(playerid, Background[20], inputtext);
}
Background[20] = TextDrawCreate(174.415817, 319.416687, " ");
TextDrawLetterSize(Background[20], 0.000000, 2.275923);
TextDrawTextSize(Background[20], 28.922401, 0.000000);
TextDrawAlignment(Background[20], 1);
TextDrawColor(Background[20], 0);
TextDrawUseBox(Background[20], true);
TextDrawBoxColor(Background[20], 102);
TextDrawSetShadow(Background[20], 0);
TextDrawSetOutline(Background[20], 0);
TextDrawFont(Background[20], 2);

pwn(429) : error 017: undefined symbol "inputtext"
pwn(429) : error 017: undefined symbol "inputtext"
pwn(429) : warning 215: expression has no effect
pwn(429) : error 001: expected token: ";", but found "]"
pwn(429) : fatal error 107: too many error messages on one line

wtf?