24.08.2016, 14:46
(
Последний раз редактировалось GoldenLion; 25.08.2016 в 10:43.
)
Hi, how is it possible to check if an e-mail is valid? Basically all I want to do is check if "@" and a dot is in the e-mail player entered. I tried checking it with strfind like that:
but it didn't work. It keeps me telling that the e-mal is invalid. I know if it would work players could put more than one dot, etc, but that's still better than nothing. How can I make it work?
Код:
if (strfind(inputtext, "@") || strfind(inputtext, ".")) return SendClientMessage(playerid, COLOR_LIGHTRED, "You have entered an invalid e-mail.");