dini help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: dini help (
/showthread.php?tid=249570)
dini help -
CrazyBlob - 19.04.2011
how would i save & load this
Код:
intut[playerid] = 0;
in dini?
thanks
Re: dini help -
Jochemd - 19.04.2011
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.
Re: dini help -
CrazyBlob - 19.04.2011
Quote:
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.
|
thank you so much<333