Login
#3

strcmp returns 0 if the string matches, therefore it wouldnt work.

EDIT:I checked it anyway, dosent work.


Quote:
Originally Posted by Lexi'
Посмотреть сообщение
What about trying this
pawn Код:
CMD:login(playerid,params[])
{
    if(!fexist(Path(playerid))) return SendClientMessage(playerid,-1,"You are not registered.");
    if(isnull(params)) return ShowUsageMessage(playerid,"/login [Pass]");
    new hashpass[129];
    WP_Hash(hashpass,sizeof(hashpass),params);
    if(!strcmp(params,pInfo[playerid][Pass]))
    {
        pLogged[playerid] = 1;
        INI_ParseFile(Path(playerid),"loadaccount_%s",.bExtra = true, .extra = playerid);
        SendClientMessage(playerid,-1,"Welcome back! You have successfully logged in");
    }
    else
    {
        SendClientMessage(playerid,-1,"ERROR: Wrong Pass");
    }
    return 1;
}
still nothing
Reply


Messages In This Thread
Login - by tyler12 - 08.09.2012, 12:36
Re: Login - by Glint - 08.09.2012, 12:43
Re: Login - by tyler12 - 08.09.2012, 12:45
Re: Login - by clarencecuzz - 08.09.2012, 12:47
Re: Login - by tyler12 - 08.09.2012, 12:50

Forum Jump:


Users browsing this thread: 1 Guest(s)