04.08.2011, 19:51
Saving with native file functions
pawn Код:
SavePlayer(playerid)
{
new filename[64];
format(filename, sizeof(filename), "users/%s.ini", PlayerName(playerid));
new File:handle = fopen(filename, io_write);
new line[128];
format(line, sizeof(line), "Score=%d\r\n", GetPlayerScore(playerid)); fwrite(handle, line);
fclose(handle);
}