File save/loading system
#6

hmmm if that what you mean i only know how to write in file

Use this:

pawn Код:
new File:File1,PATH[256],string[128];

public OnPlayerSpawn(playerid)
{
   format(PATH,126,"Users/%s.sav",PlayerName(playerid));
   File1 = fopen(PATH,io_append);
   format(string,128,"Money: %d\r\n",GetPlayerMoney(playerid));
   fwrite(File1,string);
   format(string,128,"Score: %d\r\n",GetPlayerScore(playerid));
   fwrite(File1,string);
   fclose(File1);
   return 1;
}
Reply


Messages In This Thread
File save/loading system - by thefatshizms - 23.11.2012, 15:29
Re: File save/loading system - by dr.lozer - 23.11.2012, 15:57
Re: File save/loading system - by thefatshizms - 23.11.2012, 16:00
Re: File save/loading system - by dr.lozer - 23.11.2012, 16:11
Re: File save/loading system - by thefatshizms - 23.11.2012, 16:13
Re: File save/loading system - by dr.lozer - 23.11.2012, 16:23
Re: File save/loading system - by thefatshizms - 23.11.2012, 16:26
Re: File save/loading system - by dr.lozer - 23.11.2012, 16:30
Re: File save/loading system - by iggy1 - 23.11.2012, 17:09
Re: File save/loading system - by thefatshizms - 23.11.2012, 17:28

Forum Jump:


Users browsing this thread: 2 Guest(s)