If more than one person connects at the same time, the login bugs out. It keeps saying the password is incorrect, although it is 100 percent correct.
PHP Code:
forward OnAccountCheck(playerid);
public OnAccountCheck(playerid)
{
new rows, fields;
cache_get_data(rows, fields, mysql);
if(rows)
{
cache_get_field_content(0, "Password", PlayerInfo[playerid][pPass], mysql, 129);
PlayerInfo[playerid][pID] = cache_get_field_content_int(0, "ID");
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "Koky's Gang Wars", "{FFFFFF}Welcome back to {DADADA}Koky's Gang Wars.{FFFFFF}\nType in your password below to login.", "Login", "Quit");
}
else
{
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, "Koky's Gang Wars", "{FFFFFF} Welcome to {DADADA}Koky's Gang Wars!{FFFFFF}\nType in your desired password below to register. ", "Register", "Quit");
}
return 1;
}