My login system is accepting any password.
#9

Quote:
Originally Posted by ThePhenix
Посмотреть сообщение
PHP код:
if(dialogid == DIALOG_LOGIN)
    {
        if (!
response) return Kick(playerid);
        if(
response)
        {
            new 
hashpass[129];
            
WP_Hash(hashpass,sizeof(hashpass),inputtext);
            if(
hashpass == SInfo[playerid][pPass]))
            {
                
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra true, .extra playerid);
                
GivePlayerMoney(playeridSInfo[playerid][pCash]);
                
SetPlayerScore(playeridSInfo[playerid][pScore]);
                
SendClientMessage(playerid,COLOR_KS,"Welcome back! You have successfully logged in");
            }
            else
            {
                
ShowPlayerDialog(playeridDIALOG_LOGINDIALOG_STYLE_PASSWORD,"Login","You have entered an incorrect password.\nPlease retype your password below to login.","Login","Quit");
            }
        }
        return 
1;
    }
    return 
0;

Код:
C:\Documents and Settings\Owner\Desktop\Jaysens crap\DDPUSI TDM\gamemodes\DDPTDM.pwn(901) : error 033: array must be indexed (variable "hashpass")
C:\Documents and Settings\Owner\Desktop\Jaysens crap\DDPUSI TDM\gamemodes\DDPTDM.pwn(901) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Owner\Desktop\Jaysens crap\DDPUSI TDM\gamemodes\DDPTDM.pwn(908) : error 029: invalid expression, assumed zero
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)