Raised This Month: $ Target: $400
 0% 

Solved Need Code For CFG FILE


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-24-2022 , 21:55   Re: Need Code For CFG FILE
Reply With Quote #22

If I thought he wasn't capable of doing this himself, I would have just done it (he said he wanted to learn).

Why did you add the "_amxx" to the cfg file? That will prevent this from working at all. Also, you should remove the break because if the cvar is defined twice or more in the config file then only the last one will actually be accurate.

The other thing is that just because a file exists doesn't mean it will be accessible. So, you don't need to see if it exists, just try to open if and if you don't get a valid file pointer then you can't execute any of the file reading code (this method is shown by the code I've referenced).
__________________

Last edited by fysiks; 07-24-2022 at 21:59.
fysiks is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:32.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode