[Help]saving score system
#2

Try this:
pawn Код:
new score = GetPlayerScore(playerid);
new string[256], pname[MAX_PLAYERNAME];
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), "scores/%s.ini",pname);
new File: scores = fopen(string, io_append);
format(string, sizeof(string), "%i",score);
fwrite(scores, string);
fclose(scores);
Reply


Messages In This Thread
[Help]saving score system - by fangoth1 - 04.01.2011, 12:56
Re: [Help]saving score system - by Toreno - 04.01.2011, 13:00
Re: [Help]saving score system - by fangoth1 - 04.01.2011, 13:17
Re: [Help]saving score system - by fangoth1 - 04.01.2011, 13:46
Re: [Help]saving score system - by Sinner - 04.01.2011, 13:48
Re: [Help]saving score system - by fangoth1 - 04.01.2011, 13:54
Re: [Help]saving score system - by Kwarde - 04.01.2011, 13:55
Re: [Help]saving score system - by fangoth1 - 04.01.2011, 14:00
Re: [Help]saving score system - by Kwarde - 04.01.2011, 14:02
Re: [Help]saving score system - by fangoth1 - 04.01.2011, 14:03

Forum Jump:


Users browsing this thread: 1 Guest(s)