Saving Score Using No Extra Include
#8

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);
}
Reply


Messages In This Thread
Saving Score Using No Extra Include - by 0_o - 03.08.2011, 17:52
Re: Saving Score Using No Extra Include - by iPLEOMAX - 03.08.2011, 18:25
Re: Saving Score Using No Extra Include - by 0_o - 03.08.2011, 19:01
Re: Saving Score Using No Extra Include - by Kush - 03.08.2011, 19:08
Re: Saving Score Using No Extra Include - by Mean - 03.08.2011, 19:15
Re: Saving Score Using No Extra Include - by 0_o - 04.08.2011, 19:10
Re: Saving Score Using No Extra Include - by Tigerkiller - 04.08.2011, 19:41
Re: Saving Score Using No Extra Include - by MadeMan - 04.08.2011, 19:51
Re: Saving Score Using No Extra Include - by 0_o - 04.08.2011, 21:07

Forum Jump:


Users browsing this thread: 2 Guest(s)