Help with includes
#2

Yes, you can.
pawn Код:
CMD:changepass( playerid, params[ ] )
{
    new
        Name[ MAX_PLAYER_NAME ];

    if( isnull( params ) ) return SendClientMessage( playerid, -1, "Usage: /changepass <New Password>" );
    GetPlayerName( playerid, Name, MAX_PLAYER_NAME );
    format( Path, sizeof( Path ),/* Your File Location Path Here! */ "Users\%s.ini", Name );

    new INI:File = INI_Open( Path );
    INI_SetTag( File, "data" /* Change it to the tag's name you are using */);
    INI_WriteString( File, "Password", params ); // If you are using for hashed_password like Whirlpool then change params to the variable you will make "new buf[ 129 ];" etc..
    INI_Close( File );
    return 1;
}
Reply


Messages In This Thread
Help with includes - by Saw® - 02.02.2012, 12:51
Re: Help with includes - by Konstantinos - 02.02.2012, 13:00
Re: Help with includes - by Saw® - 02.02.2012, 13:03
Re: Help with includes - by 2KY - 02.02.2012, 13:03
Re: Help with includes - by Konstantinos - 02.02.2012, 13:06
Re: Help with includes - by Saw® - 02.02.2012, 13:07
Re: Help with includes - by Saw® - 02.02.2012, 14:30
Re: Help with includes - by Konstantinos - 03.02.2012, 12:56
Re: Help with includes - by Saw® - 03.02.2012, 13:17

Forum Jump:


Users browsing this thread: 1 Guest(s)