18.08.2009, 09:03
pawn Код:
new string[32];
format(string, sizeof(string), PASSWORD_FOLDER, PlayerName(playerid));
new File: hFile = fopen(string, io_write);
if (hFile)
{
strmid(AccountInfo[playerid][Password], params, 0, strlen(params), 255);
new str[128];
format(str, 128, "Password=%s\n", AccountInfo[playerid][Password]);
fwrite(hFile, str);
fclose(hFile);
// The rest of the code - un important