Michael.Knight1 Posted March 9, 2012 Share Posted March 9, 2012 allways peace ok friends i want to know how to use ini files with gta sa script Link to comment Share on other sites More sharing options...
Link2012 Posted March 9, 2012 Share Posted March 9, 2012 (edited) Did you use opcode search tool? 0AF0 ~ 0AF5 are opcodes that manages ini files, they are auto-explainable. Edited March 9, 2012 by Link2012 Link to comment Share on other sites More sharing options...
Michael.Knight1 Posted March 9, 2012 Author Share Posted March 9, 2012 Did you use opcode search tool? 0AF0 ~ 0AF5 are opcodes that manages ini files, they are auto-explainable. yes i can but i want to know how to use ini files Link to comment Share on other sites More sharing options...
Link2012 Posted March 9, 2012 Share Posted March 9, 2012 A ini file struct is [section]key1=value1 key2=value2 And you can do more sections [section1]key1=value1 key2=value2 [section2] key1=value1 key2=value2 The values at SectionX->keyX are differents because the section. Now that you know it you can use the opcodes, let's imagine this ini [sectionName]stringKey=MyStr intKey=40 floatKey=4.7 To get the values I will use 0AF4: [email protected] = read_string_from_ini_file "cleo\config.ini" section "SectionName" key "stringKey" // [email protected] = "MyStr"0AF0: [email protected] = get_int_from_ini_file "cleo\config.ini" section "SectionName" key "intKey" // [email protected] = 400AF2: [email protected] = get_float_from_ini_file "cleo\config.ini" section "SectionName" key "floatKey" // [email protected] = 4.7 To write is basically the same logic, using 0AF5, 0AF1, 0AF3. Link to comment Share on other sites More sharing options...
Michael.Knight1 Posted March 10, 2012 Author Share Posted March 10, 2012 is available in ZAZ Tut ?? I want to learn it Link to comment Share on other sites More sharing options...
fastman92 Posted March 10, 2012 Share Posted March 10, 2012 (edited) You are greatly resistant to the knowledge. What's this? http://www.gtaforums.com/index.php?showtop...st&p=1061138651 Edited March 10, 2012 by fastman92 Link to comment Share on other sites More sharing options...
Michael.Knight1 Posted March 10, 2012 Author Share Posted March 10, 2012 You are greatly resistant to the knowledge. What's this? http://www.gtaforums.com/index.php?showtop...st&p=1061138651 Thanks I understand ok can I Use INI Files of Sound Volume Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now