How to Read Ini File and Hold Values
Im kinda newbie with ini files thing, and i need some help here.
the thing is: 1) Read the File 2) Hold some Lines Readed 3) Cut Something From the Lines Readed 4) Transform it into a Vote if its possible i wish u guys could explain those things and how to do.. :D |
Re: How to Read Ini File and Hold Values
For reading a .ini file see my Bot Apology plugin (in my signature).
1,2. You can use parse() on a line to break it up into variables. To use parse the line would need to look like this: 3. Code:
"thing1" "thing2" "thing3" |
Re: How to Read Ini File and Hold Values
can you make an example of parse() with your example ? =S
|
Re: How to Read Ini File and Hold Values
Quote:
PHP Code:
|
Re: How to Read Ini File and Hold Values
and there is anyway to change set_task time based on cvar number from config file ? =o
|
Re: How to Read Ini File and Hold Values
Code:
new cvarTime = register_cvar("Time", 10") |
Re: How to Read Ini File and Hold Values
i mean take the number from the file, and set_task(thenumber, ...)
|
Re: How to Read Ini File and Hold Values
you could, or you could just put the code i told you in ur code, and then put time "whatever number" here and then it would work.
|
Re: How to Read Ini File and Hold Values
Read the value from the file then do:
set_task( str_to_float( szValFromFile ) , ... ); |
| All times are GMT -4. The time now is 21:51. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.