if inputtext does not contain
#4

use something like:
Код:
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
}
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, "@", true) == -1)
{
  //send warning
}
Reply


Messages In This Thread
if inputtext does not contain - by CH | FuDo - 31.07.2013, 21:12
Re: if inputtext does not contain - by Sascha - 31.07.2013, 21:30
Re: if inputtext does not contain - by CH | FuDo - 31.07.2013, 21:33
Re: if inputtext does not contain - by Sascha - 31.07.2013, 21:47

Forum Jump:


Users browsing this thread: 1 Guest(s)