28.01.2017, 11:59
Quote:
Bem, kk nгo achei um nome especifico, mais tipo o que estou tentando dizer й como faz aquelas telas de login que quando alguйm digita a senha no Dialog, ele mostra na Textdraw, tipo digitei minha senha '123' aparece '***'.
Nгo sei se conseguem entender .-. Nгo achei nada sobre o mesmo na board entгo vim pedir ajuda ;-;. Obrigado desde jб. |
//O CУDIGO ABAIXO, TUDO QUE FOR DIGITADO NA DIALOG/INPUTTEXT ELE IRБ SUBSTITUIR PARA ] QUE Й A ESTRELA EM TEXTDRAW
PHP код:
new SLOGIN[][] =
{
{"1"}, {"2"}, {"3"}, {"4"}, {"5"}, {"6"}, {"7"}, {"8"}, {"9"}, {"0"}, {"/"}, {"`"}, {"~"}, {"!"}, {"@"},
{"#"}, {"$"}, {"%"}, {"^"}, {"&"}, {"*"}, {"("}, {")"}, {"-"},
{"="}, {"+"}, {"."}, {","}, {"<"}, {">"}, {"#"}, {"#"}, {"{"}, {"}"}, {"|"}, {":"}, {";"}, {"'"},
{"a"}, {"b"}, {"c"}, {"d"}, {"e"}, {"f"}, {"g"}, {"h"}, {"i"}, {"j"}, {"k"}, {"l"}, {"m"}, {"n"}, {"o"},
{"p"}, {"q"}, {"r"}, {"s"}, {"t"}, {"u"}, {"v"}, {"w"}, {"x"},
{"y"}, {"z"}
};
for(new t = 0; t < sizeof SLOGIN; t++)
{
new fp = strfind(inputtext, SLOGIN[t], true);
while(fp != -1)
{
for(new i = 0; i < strlen(SLOGIN[t]); i++)
{
inputtext[fp + i] = ']';
}
fp = strfind(inputtext, SLOGIN[t], true);
}
}
if(Jogador[playerid][DADOSLOGIN][19] != PlayerText:INVALID_TEXT_DRAW)
{
format(string, sizeof(string), "%s", inputtext);
PlayerTextDrawSetString(playerid, Jogador[playerid][DADOSLOGIN][19], string);
}