Help 0AF4 opcode variable

Joined
Sep 9, 2018
Messages
5
Likes
0
Points
1
1
#1
hi original opcode is

0AF4: [email protected] = read_string_from_ini_file "cleo\config.ini" section "SectionName" key "stringKey"

but i need something to look like this

0AF4: [email protected] = read_string_from_ini_file "cleo\config.ini" section "SectionName" key [email protected]

and it doesn't work. my question is it possible to make this opcode that key into variable or not?

yeah and my [email protected] is going to be integer so overtime in a loop i will add [email protected] + 1
 

Edvincik

Well-Known Member
Joined
Mar 15, 2016
Messages
337
Likes
1
Points
33
#2
Valiuks said:
hi original opcode is

0AF4: [email protected] = read_string_from_ini_file "cleo\config.ini" section "SectionName" key "stringKey"

but i need something to look like this

0AF4: [email protected] = read_string_from_ini_file "cleo\config.ini" section "SectionName" key [email protected]

and it doesn't work. my question is it possible to make this opcode that key into variable or not?

yeah and my [email protected] is going to be integer so overtime in a loop i will add [email protected] + 1
You didn't understand this opcode correctly. If you put this line: 0AF4: [email protected] = read_string_from_ini_file "cleo\config.ini" section "SectionName" key "stringKey", then [email protected] will be that value that you get from .ini. But for numbers i recommend you to use: 0AF0: [email protected] = get_int_from_ini_file "cleo\config.ini" section "SectionName" key "intKey", then [email protected] will contain value from .ini and in loop you will have to put [email protected] += 1
 
OP
OP
V
Joined
Sep 9, 2018
Messages
5
Likes
0
Points
1
1
#3
ty for reply but the value i need to get is string. i will have ini file containing ex:

[Test]
1=Name1
2=Name2
3=Name3
and so on, until like 100

so for [email protected] will be 1 and it will get me name1 and everything in ini file in that loop. if its not possible you got suggestions hoe to do it then?
 
OP
OP
V
Joined
Sep 9, 2018
Messages
5
Likes
0
Points
1
1
#5
Top