23.11.2012, 16:11
Oh! use Dini.inc Functions
Click here to download Dini.inc
EXAMPLE:
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;
}