DINI Question - 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 Question (
/showthread.php?tid=141833)
DINI Question -
Torran - 15.04.2010
On dini,
If i was to have like this:
dini_IntSet(file,"Money",GetPlayerMoney(playerid)) ;
dini_IntSet(file,"Score",GetPlayerScore(playerid)) ;
In the file it would be:
Money: MONEY
Score: SCORE
How do i get it on one line?
So like, Money: MONEY, Score: SCORE
Re: DINI Question -
Thrarod - 15.04.2010
Why you want to do this, this makes it mixed and hard to read in files!
Re: DINI Question -
Torran - 15.04.2010
Because...
Re: DINI Question -
Thrarod - 15.04.2010
Because what? It is not good for you...
Re: DINI Question -
Torran - 15.04.2010
Because i want stats on one line for one player,
Cause it would be a big file to read through otherwise
Re: DINI Question -
Thrarod - 15.04.2010
I think its not possible because dini must read playername(string) then its alternative values which are not included I think
Re: DINI Question -
dice7 - 15.04.2010
You can edit dini_IntSet and change the fwrite(fwhnd,"\r\n"); to whatever delimiter you want, but you'll face problems with dini_Get(), since fread() read lines, and you'll only have one huge line. Unless you edit dini_Gets, so It uses fgetchar()
Re: DINI Question -
Thrarod - 15.04.2010
So its almost impossible to use alt vars