19.04.2011, 15:31
We got the functions dini_IntSet (write) and dini_Int (read) for that
This is how we write...
And this is how we read.
pawn Код:
new Playername[MAX_PLAYER_NAME],file[40];
GetPlayerName(playerid,Playername,sizeof(Playername));
format(file,sizeof(file),"Accounts/%s.ini",Playername);
dini_IntSet(file,"intut",intut[playerid]);
pawn Код:
new Playername[MAX_PLAYER_NAME],file[40];
GetPlayerName(playerid,Playername,sizeof(Playername));
format(file,sizeof(file),"Accounts/%s.ini",Playername);
intut[playerid] = dini_Int(file,"intut");