- Joined
- Aug 7, 2006
- Messages
- 134
- Reaction score
- 0
- Points
- 0
Hello was wondering if anyone could help me with a .ini problem i got it to write to ini ect.but not comming out like i want it too lil help please.
This is code that iam using.
That seems to make it do this in ini
what i would like it to do
Ect...
Thanks for any help...
This is code that iam using.
Code:
/declare itemname string local
/declare ItemSetting int local
/declare NotFound int local
/varset NotFound -1
| Look up this item in aa.ini
/varset ItemSetting ${Ini[aa.ini,bb,${itemname},${NotFound}]}
/delay 5
| If the item isn't in the .ini file then add it.
/if (${ItemSetting}==${NotFound}) {
/ini "aa.ini" "bb" "${itemname}"
/ini "aa.ini" "bb" "cc"
/ini "aa.ini" "bb" "dd"
/varset ItemSetting 1
That seems to make it do this in ini
Code:
[bb]
item=
cc=
dd=
item=
item=
item=
what i would like it to do
Code:
[bb]
[item]
cc=
dd=
[item]
cc=
dd=
[item]
cc=
dd=
Ect...
Thanks for any help...
Last edited: