Get value from ini file
Hello. So I made an ini file where all the models are stored, it looks like that "model" "skin" .
For each model, a skin value is assigned. 0 means it has no skins, 1 means it has skins. What's the easiest way to check if the current g_skins , depending on the menu item that was selected, has the value 0 or 1? If the value is 0, I will make it change the player model and assign the skin 0, if it is 1, it will open up a new menu where u can select the skin that u want for the model. I will do all of this, I jsut need a way to easely get the value. Thanks! |
Re: Get value from ini file
Depends on your current code.
|
Re: Get value from ini file
Quote:
Code:
read_file(conffile_model, item, file_model, 127, leng)I want tor ead the num :) |
Re: Get value from ini file
PHP Code:
|
Re: Get value from ini file
Quote:
|
Re: Get value from ini file
g_skins is the skin...
|
Re: Get value from ini file
Quote:
|
Re: Get value from ini file
How is the ini formatted?
Like this? If so, take a loot at this Code:
[GROUP1] |
Re: Get value from ini file
Quote:
|
Re: Get value from ini file
Is there a grouping, or just a list of item=value?
Disregard if you've figured it out |
| All times are GMT -4. The time now is 21:00. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.