Originally Posted by Jochemd
We got the functions dini_IntSet (write) and dini_Int (read) for that
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]);
This is how we write...
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");
And this is how we read.
|