[Help] Dini Set
#1

why when i do this :

dini_Set(dinipath, "car", "%d" , i-100);

under the key car it doing %d and not the number?
Reply
#2

Quote:
Originally Posted by borisblat
why when i do this :

dini_Set(dinipath, "car", "%d" , i-100);

under the key car it doing %d and not the number?
Try:
pawn Код:
new Car[3];
format(Car,sizeof(Car),"%d",i-100);
dini_Set(dinipath,"car",Car);
Reply
#3

You obviously don't know the format dini takes:

dini_Set(filename[], key[], value[])

In your case, I think you're after:

dini_IntSet(filename[], key[], value)

dini_IntSet(dinipath, "car", i-100)

EDIT: Previous posters solutions saves it as a string, mine saves it as an integer... =/ s'up to you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)