SA-MP Forums Archive
[Question] Check Result for Contant - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [Question] Check Result for Contant (/showthread.php?tid=325299)



[Question] Check Result for Contant - tony_fitto - 12.03.2012

Hey everyone.

I'm making a dialog for registering on my server and I have one dialog with registering of email.
But most players ignore that one but It's not possible cause we send emails to everyone once it's registed.

Therefore I need to find a way to do so if you haven't entered a proper email with a @ it will give you an error and you have to re-enter a email once agen until a proper email are correct.

Anyone have an Idea of how to create a such thing?


Re: [Question] Check Result for Contant - MP2 - 12.03.2012

You could use the regex plugin, or simply check for a @ and . character. Don't let them play until they verify their e-mail? Use a verification system?


Re: [Question] Check Result for Contant - tony_fitto - 12.03.2012

Quote:
Originally Posted by MP2
Посмотреть сообщение
You could use the regex plugin, or simply check for a @ and . character. Don't let them play until they verify their e-mail? Use a verification system?
Yeah thats correct, you can choose between registering on our UCP then it works perfect but ingame people intend to avoid the email, so I keep getting emails about "Mail Delivory" something. It's really annoying XD

So once you recived your email you have to verify it to be able to play on the server. but People avoids it some how.


Re: [Question] Check Result for Contant - MP2 - 12.03.2012

What verification system are you using? I made a system when when you register your account is created, and a 'key' is set (xxxx-xxxx) and e-mailed to you, and you have to enter it in-game to continue with registration.


Re: [Question] Check Result for Contant - tony_fitto - 12.03.2012

Oh, Mine is generated from my UCP which I made by my self.
The verification system is really simple, by simple generate a PHP key


Re: [Question] Check Result for Contant - tony_fitto - 12.03.2012

Sorry for bumping but got an update.

If I use a Dialog for this, is it possible to do like this?
pawn Код:
if(!strfind((inputtext), "@" , true ) != -1)
Cause I get some werd error in this inpouttext...