SA-MP Forums Archive
[Ajuda] Verificar se hб o caracter '@' no inputtext - 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] Verificar se hб o caracter '@' no inputtext (/showthread.php?tid=434154)



[ RESOLVIDO ] Verificar se hб o caractere '@' no inputtext - Alado - 01.05.2013

O tнtulo diz tudo!

No momento do registro, й mostrado um dialog para o jogador, onde ele deve informar um e-mail vбlido.. O problema й que nгo sei como fazer para verificar se realmente й um e-mail que ele colocou ali!

Preciso pegar alguns caracteres, por exemplo:

@
.
#
!
%
$
*

Й necessбrio que no input tenha os caracteres '@' e '.' e nгo pode ter os outros.. Como posso fazer isso?


Re: Verificar se hб o caracter '@' no inputtext - zSuYaNw - 01.05.2013

Usas https://sampwiki.blast.hk/wiki/Strfind

Quote:

if(strfind(inputtext, "@"))




Re: Verificar se hб o caracter '@' no inputtext - Alado - 01.05.2013

Obrigado, zSuYaNw.