21.05.2016, 19:03
im create login sistem use email verification, how to check if email used by other player? im use dini
pinfo[playerid][email]
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");
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. |