How do you read from a cfg file? [SOLVED]
Hello I wonder what is wrong with this, and I wonder how do you read
from a cfg file? My version (read_from_file) has a few leaks (LOL). What is the right way to do this? Code:
|
Re: How do you read from a cfg file?
Have you read the tutorial on reading and writing to files with the new read and write system? If not i suggest you go read it before you procced.. Also I would suggest making the second part of your code into a switch statement. It looks horable lol . :shock:
|
Re: How do you read from a cfg file?
And where can i find that tutorial
|
Re: How do you read from a cfg file?
most likely in the tutorial section lol.
http://forums.alliedmods.net/showthread.php?t=46218 if you need help cleaning your code up let me know ill clean it for you :wink: |
Re: How do you read from a cfg file?
Well OK, I would appreciate if you cleaned it.
|
Re: How do you read from a cfg file?
now this wont compile cause your code had like 10 errors, im assuming this is un-finished code. But this will make it a little cleaner hope it helps
Code:
|
Re: How do you read from a cfg file?
But that link you gave me does it have to be that hard?
Isn't there an easier way? If there isn't please tell me how to to it. Thanks |
Re: How do you read from a cfg file?
nope
|
Re: How do you read from a cfg file?
Code:
nope. Code:
|
Re: How do you read from a cfg file?
well then its a good thing i told him i would only make a switch statement for him then. If your so concerned clean his whole code . :up:
|
| All times are GMT -4. The time now is 06:52. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.