SA-MP Forums Archive
Colocar arroba '@' - 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: Español/Spanish (https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: Colocar arroba '@' (/showthread.php?tid=536751)



Colocar arroba '@' - Alvaro89 - 11.09.2014

Hola. Como hago para q al ingresar el email coloquen obligadamente el '@'


Respuesta: Colocar arroba '@' - The-Krew - 12.09.2014

con SSCANF ._./

{p<@>s[50]p<.>s[50]p< >s[10]}


Respuesta: Colocar arroba '@' - [J]ulian - 12.09.2014

pawn Код:
new pos = strfind(text, "@", true, 0);
if(pos != -1)
{
// tiene arroba
}
else
{
// no tiene arroba
}



Respuesta: Colocar arroba '@' - adri1 - 12.09.2014

Quote:
Originally Posted by [J]ulian
Посмотреть сообщение
pawn Код:
new pos = strfind(text, "@", true, 0);
if(pos != -1)
{
// tiene arroba
}
else
{
// no tiene arroba
}
Para que definir una variable mi amor?
pawn Код:
if(strfind(text, "@", true, 0) != -1) return 1;
return 0;



Respuesta: Colocar arroba '@' - [J]ulian - 12.09.2014

Quote:
Originally Posted by adri1
Посмотреть сообщение
Para que definir una variable mi amor?
pawn Код:
if(strfind(text, "@", true, 0) != -1) return 1;
return 0;
Si, tenes razуn. Pero bueno, costumbre xD