check if email exist - 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: check if email exist (
/showthread.php?tid=607617)
check if email exist -
ratxrat - 21.05.2016
im create login sistem use email verification, how to check if email used by other player? im use dini
Re: check if email exist -
BiosMarcel - 21.05.2016
the an proper http request that goes to a server which handles the request, i guess you can ****** how that works
Re: check if email exist -
ratxrat - 21.05.2016
i mean . if player input on inputbox, check if email exist chose other email.
.
example for variable
Код:
pinfo[playerid][email]
then check every data "email" at .ini player data
like this
Код:
if (email != exist)
ShowPlayerDialog(playerid,666,DIALOG_STYLE_INPUT,"Register","insert verifikation number","Enter","Exit");
else
ShowPlayerDialog(playerid,777,DIALOG_STYLE_INPUT,"Register","your email already exist chose other email","Enter","Exit");
but im dont understand how to get
if (email != exist) from every palyer data
Re: check if email exist -
Vince - 21.05.2016
Short answer: you can't.
Long answer: it's too impractical. Either open each player's file and look for the e-mail address or keep one large list of e-mail addresses. Either way, the time to lookup an address increases as the number of registrations grows and therefore lag increases as well. One large list of addresses isn't a very good idea from a security standpoint either. Add to that that disk IO is inherently very slow and that dini is literally the worst file system ever, and you have a recipe for disaster.
Re: check if email exist -
ilijap - 21.05.2016
Why you just dont use mysql? With mysql everything is possible
Re: check if email exist -
ratxrat - 21.05.2016
Quote:
Originally Posted by Vince
Short answer: you can't.
Long answer: it's too impractical. Either open each player's file and look for the e-mail address or keep one large list of e-mail addresses. Either way, the time to lookup an address increases as the number of registrations grows and therefore lag increases as well. One large list of addresses isn't a very good idea from a security standpoint either. Add to that that disk IO is inherently very slow and that dini is literally the worst file system ever, and you have a recipe for disaster.
|
Thanks for explanation