Read specific part from ini
Hello. It's my first time trying to use containi so I am not yet very familiar with it, I know it's like that native containi(const source[],const string[]); where source is the ini file and string is the string. The real problem is how can I read only specific text from every line from the ini, in this case the models, and not anything else that goes after them? Any help will be apreciated, thanks!
Code:
public plugin_precache() |
Re: Read specific part from ini
Where are you using contiaini()? Why would you use containi()?
Note that read_file() is deprecated and should not be used. You should use fopen() (you can see an example in my bot plugin in my signature. If you want to have 'end of line' comments then you need to use something like strtok() where the token is your comment delimiter (often the semi-colon in INI files) to separate the data from the comment. |
Re: Read specific part from ini
Quote:
|
Re: Read specific part from ini
Documentation is your best friend while coding, always. http://amxmodx.org/api
|
| All times are GMT -4. The time now is 20:43. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.