Thread: [Solved] Need Code For CFG FILE
View Single Post
Begineer Programmer
Member
Join Date: Nov 2021
Old 07-24-2022 , 22:05   Re: Need Code For CFG FILE
Reply With Quote #36

Quote:
Originally Posted by fysiks View Post
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).
PHP Code:
fgets(iFileszCfgDatacharsmax(szCfgData)) 
And
Parse
i need to understand this what going that there ?
Begineer Programmer is offline