31.07.2013, 21:47
use something like:
although you have to mention that this wouldn't allow a player to use a custom mail from e.g. his website...
or one you've forgotten to list...
so I'd advise you just to check for an @
Код:
if(strfind(inputtext, "@hotmail.com", true) == -1 && strfind(inputtext "@gmail.com", true) == -1 && strfind(inputtext, "@yahoo.com", true) == -1 && strfind(inputtext, "@******mail.com", true) == -1) { //false mail }
or one you've forgotten to list...
so I'd advise you just to check for an @
Код:
if(strfind(inputtext, "@", true) == -1) { //send warning }