/changepass YINI
#11

pawn Code:
CMD:changepass(playerid, params[])
{
    new player[MAX_PLAYER_NAME],string[256], hashpass[129];       // the player name, // and the string for the path
    if(sscanf(params, "s[32]s[50]", player, params))return SendClientMessage(playerid, -1, "/changepassword [password]");//sscanf, what ever u write after /change
    format(string, 256, "/%s.ini", player);//put ur ini path here but keep the player
    new INI:file = INI_Open(string); // opening the path
    WP_Hash(hashpass,sizeof(hashpass),params);
    INI_WriteString(file,  "Password", hashpass);//writing in the path
    INI_Close(file);// close the file
    return 1;
}
pawn Code:
/*
  Okay Here what is wrong

*/

 INI_WriteString(file,  "Password", hashpass);//writing in the path
/* Why is it so hard to see you have two different variabls one is password the other is pPasspword
so change this line to
 INI_WriteString(file,  "pPassword", hashpass);//writing in the path
*/
Reply


Messages In This Thread
/changepass YINI - by Blackazur - 26.06.2013, 15:09
Re: /changepass YINI - by dEcooR - 26.06.2013, 15:29
AW: /changepass YINI - by Blackazur - 26.06.2013, 15:30
Re: /changepass YINI - by dEcooR - 26.06.2013, 15:35
AW: /changepass YINI - by Blackazur - 26.06.2013, 16:03
Re: /changepass YINI - by dEcooR - 26.06.2013, 16:08
AW: /changepass YINI - by Blackazur - 26.06.2013, 16:42
Re: /changepass YINI - by dEcooR - 26.06.2013, 16:46
Re: /changepass YINI - by Glad2BeHere - 26.06.2013, 16:55
AW: /changepass YINI - by Blackazur - 26.06.2013, 17:00
Re: /changepass YINI - by Glad2BeHere - 26.06.2013, 18:34
AW: /changepass YINI - by Blackazur - 26.06.2013, 18:37
Re: /changepass YINI - by Glad2BeHere - 26.06.2013, 18:42
AW: /changepass YINI - by Blackazur - 26.06.2013, 18:48
Re: /changepass YINI - by drichie - 27.06.2013, 06:54

Forum Jump:


Users browsing this thread: 3 Guest(s)