27.10.2012, 00:15
pawn Код:
CMD:changepassword(playerid, params[])
{
new string[128], string1[32], password[32];
if(sscanf(params, "s[32]", password)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /changepassword [new password]");
format(string, sizeof(string), "You have changed your password to %s, effect starts from now.", password);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
new INI:File = INI_Open(UserSavePath(playerid));
INI_WriteInt(File, "Password", password);
INI_Close(File);
return 1;
}
INI_WriteInt(File, "Password", password);
thank you, rep