Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

Wrong Passwords

$
0
0
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 
rowsfields;
    
cache_get_data(rowsfieldsmysql);
    if(
rows)
    {
        
cache_get_field_content(0"Password"PlayerInfo[playerid][pPass], mysql129);
        
PlayerInfo[playerid][pID] = cache_get_field_content_int(0"ID");
        
ShowPlayerDialog(playeridDIALOG_LOGINDIALOG_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(playeridDIALOG_REGISTERDIALOG_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;



Viewing all articles
Browse latest Browse all 18226

Trending Articles