08.05.2020, 21:41
Here is my code:
It takes about 6 , 7 seconds to show the login dialogs!
No problem with registering queries..
I have never had such a problem,
can anyone help? Thanks
pawn Code:
new query[128];
mysql_format(SQLHandle, query, sizeof query, "select * from `accounts` where `playername` = '%e';", PlayerName(playerid));
mysql_tquery(SQLHandle, query, "OnPlayerCheckData", "d", playerid);
public OnPlayerCheckData(playerid)
{
if(cache_num_rows())
{
cache_get_value_name(0, "password", PlayerInfo[playerid][password], 128);
//login dialogs...
} else {
//register dialogs...
}
return 1;
}
No problem with registering queries..
I have never had such a problem,
can anyone help? Thanks