/changepass doesn't work
#8

Ok try this.
PHP код:
dcmd_changepass(playeridparams[])
{
    new 
name[MAX_PLAYER_NAME], newpass[30];
    
GetPlayerName(playeridnamesizeof(name));
    if(
sscanf(params,"s"newpass)) return SendClientMessage(playerid0xF60000AA"USAGE: /changepass [new password]");
    if(
strlen(params) >= 3)
    {
        
format(filesizeof(file), "users/%s.txt"name);
        
dini_Set(file"Password"udb_hash(newpass));
        
SendClientMessage(playeridCOLOUR_GREEN"Your password has been successfully been changed");
    }
    else
    {
        
SendClientMessage(playeridCOLOUR_RED"Your password must be atleast 3 characters long");
    }
    return 
1;

Reply


Messages In This Thread
/changepass doesn't work - by Dolph - 13.03.2012, 11:49
Re: /changepass doesn't work - by nmader - 13.03.2012, 11:51
Re: /changepass doesn't work - by Dolph - 13.03.2012, 11:54
Re: /changepass doesn't work - by nmader - 13.03.2012, 11:55
Re: /changepass doesn't work - by Dolph - 13.03.2012, 11:59
Re: /changepass doesn't work - by Bogdan1992 - 13.03.2012, 12:04
Re: /changepass doesn't work - by Dolph - 13.03.2012, 12:07
Re: /changepass doesn't work - by Bogdan1992 - 13.03.2012, 12:11
Re: /changepass doesn't work - by Dolph - 13.03.2012, 13:36
Re: /changepass doesn't work - by Bogdan1992 - 13.03.2012, 13:39

Forum Jump:


Users browsing this thread: 1 Guest(s)