Posts: 155
Threads: 52
Joined: Apr 2009
Reputation:
0
why when i do this :
dini_Set(dinipath, "car", "%d" , i-100);
under the key car it doing %d and not the number?
Posts: 1,293
Threads: 6
Joined: Jul 2008
Reputation:
0
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.