CFG and INI files
I am read tons of amx plugins, yet i still cant figgure out how to make a plugin to read a CFG or INI file!
Can anyone help me with the basics for making a plugin read a file? Thanks, [cTs] Strake*ROC* |
u want to know how to read and write to one so like a kinda vault file maybe? or just a pre made cfg?
|
i wana be able to make a plugin, that read an INI file,
for plugins like one i am working on, that tells clan members if they have been promoted or not to a new rank, so when they log on, it checks the INI file, and if their Steam ID is in the file, then it tells them GRATZ you been Promoted! |
yeah but is it writeable from inside the server? becuase then its a vault type file thats what meant is it writeable from inside server or no?
|
as in command like
amx_newpromo "steam ID" ? No, i want it so i can write a file, and the server uses it... the Users.ini and amx mod X |
I want to read from an INI file, like a list of clan tags (ya know what i mean).
|
1 Attachment(s)
well I have been trying to write good examples of how u can use a cfg file but I think best would be if u see an actually example so without further ado here is a small place from Lud's map cvar plugin :
Code:
just gotta let the plugin read specific "words/cvars" in the file and then place a |
Luds huh, will I talk with him on a regular basis, everyday in fact, usefull isent he.
|
lol well im certain my views on Mr. lidman are well known. but yeah I generally refrence his plguin library when I need help.
|
1 Attachment(s)
Ok I just threw this together and compiled it. The compile works but I'm not sure if it does:
Code:
/*Zor |
| All times are GMT -4. The time now is 14:57. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.