16.02.2017, 15:26
Usa una consulta mysql
Verificas en Pawn
Verificas en Pawn
PHP код:
OnPlayerConnect
mysql_format(g_SQL, Query, sizeof(Query), "SELECT Email FROM `usuarios` WHERE `Email` ='%e' LIMIT 1", GetName(playerid));
mysql_tquery(g_SQL, Query, "Check_Account", "d", playerid);
PHP код:
forward Check_Cuenta(playerid);
public Check_Cuenta(playerid)
{
new info[128];
if(cache_num_rows() > 0)
{
cache_get_value(0, "Email", PlayerInfo[playerid][Email], 50);
format(info, sizeof(info), "El Email %s se encuentra registrado!", PlayerInfo[playerid][Email]);
SendClientMessage(playerid, -1, info);
}
return 1;
}