File save/loading system
#4

Oh! use Dini.inc Functions

Click here to download Dini.inc

EXAMPLE:
pawn Код:
stock PlayerName(playerid)
{
   new Name[24];
   GetPlayerName(playerid, Name,24);
   return Name;
}

CMD:loadmymoneyfromaccount(playerid)
{
   new File[256]; format(File,256,"Users/%s.sav",PlayerName(playerid));
   ResetPlayerMoney(playerid);
   GivePlayerMoney(playerid, dini_Get(File,"Money"));
   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: 1 Guest(s)