25.05.2012, 23:30
Seriously...
If you have a enum create a pKills and Pdeaths in it if you dont add this
Okay so now I'm guessing you can work out how to save/load as I havnt used Dini in ages and cant remember the Syntax.
If you dont understand how to save/load it give me an example to follow.
And enjoy the code.
If you have a enum create a pKills and Pdeaths in it if you dont add this
pawn Код:
enum pInfo
{
pKills,
pDeaths
}
new PlayerInfo[MAX_PLAYERS][pInfo];
pawn Код:
dini_IntSet(file[playerid], "Kills", PlayerInfo[playerid][pKills]);
dini_IntSet(file[playerid], "Deaths", PlayerInfo[playerid][pDeaths]);
And enjoy the code.