DINI Question
#1

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
Reply
#2

Why you want to do this, this makes it mixed and hard to read in files!
Reply
#3

Because...
Reply
#4

Because what? It is not good for you...
Reply
#5

Because i want stats on one line for one player,
Cause it would be a big file to read through otherwise
Reply
#6

I think its not possible because dini must read playername(string) then its alternative values which are not included I think
Reply
#7

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()
Reply
#8

So its almost impossible to use alt vars
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)