How to setup a config! [Plugin Example]
Meh, I was looking how to do this myself, couldn't find any good tutorial, so I felt like making an example for anyone whos looking like me. :P
testconfig.amxx Sets a config path, and loads cvars from that. Note- Make a folder named "Test" inside your config folder, and make a config file named "Test" with the cvar "Test_Enabled 1" or "Test_Enabled 0". Code:
|
Re: How to setup a config! [Plugin Example]
This makes no sense. There's so much irrelevant and useless code.
|
Re: How to setup a config! [Plugin Example]
Agreed.
When you post code in this forum, you should only post the working code needed to get the point across. Extraneous code just confuses the issue. Also of note, if you only have a single file for your plugin, it makes no sense to create another subdirectory to contain that one file. You should only create a subdirectory if you have 2 or more files for your plugin. If you just have one, place it in the .\configs directory itself. |
Re: How to setup a config! [Plugin Example]
why do we need a tutorial on how to exec a config file?
|
Re: How to setup a config! [Plugin Example]
Quote:
|
Re: How to setup a config! [Plugin Example]
Quote:
|
Re: How to setup a config! [Plugin Example]
Quote:
Code:
I couldn't find this ANYWHERE, therefore it's useful. Also, I didn't really explain how it works, just assume it does. |
Re: How to setup a config! [Plugin Example]
Moved to "Scripting Help" because it doesn't meet the unspoken and unknown criteria for being in "Code Snippets/Tutorials".
|
Re: How to setup a config! [Plugin Example]
Quote:
|
Re: How to setup a config! [Plugin Example]
Alright, I have no problem with that. Haha.
|
| All times are GMT -4. The time now is 08:05. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.