Load ini [Lines]
Hello,
Can anybody show me, how to read all lines of a Ini file? Like: HTML Code:
de_dust2so i have, as example, all maps in one array? (new file[][]) |
Re: Load ini [Lines]
There are several examples. You can look at my Bot Apology plugin shown in my signature.
|
Re: Load ini [Lines]
Maybe you can make a little tutorial how it exactly work ?
|
Re: Load ini [Lines]
Quote:
|
Re: Load ini [Lines]
You can read this way:
PHP Code:
In //Asks you can ask if the line is "de_dust" or that. Parameters: line represents the number line charcount the char count of the line data, content the line (ej: de_dust2) |
Re: Load ini [Lines]
Quote:
|
Re: Load ini [Lines]
fysiks i got a question about your plugin? It says in one of the parameters for fgets, sizeof(data)-1. Would it be better to use charsmax? If not, why would you use sizeof there instead of charsmax?
Or, would they both work? |
Re: Load ini [Lines]
Quote:
So, it's the same thing. That was before I knew about charsmax. |
Re: Load ini [Lines]
Ok, thanks, just wondering if there were special cases when u would use one and not the other.
|
Re: Load ini [Lines]
Quote:
|
| All times are GMT -4. The time now is 21:58. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.