Raised This Month: $ Target: $400
 0% 

[ SOLVED ] Make .ini or .cfg file to plugin?


Post New Thread Reply   
 
Thread Tools Display Modes
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 11-15-2015 , 20:47   Re: [ HELP ] Make .ini or .cfg file to plugin?
Reply With Quote #11

By looking at the code.
__________________
Bugsy is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 11-15-2015 , 20:49   Re: [ HELP ] Make .ini or .cfg file to plugin?
Reply With Quote #12

Nice sharing, Bugsy. I also can learn from it. ;)
zmd94 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 11-15-2015 , 20:51   Re: [ HELP ] Make .ini or .cfg file to plugin?
Reply With Quote #13

Quote:
Originally Posted by Bugsy View Post
By looking at the code.
When you give them exactly what they want, they won't have any incentive to learn.

If you give a man a fish . . .
__________________

Last edited by fysiks; 11-15-2015 at 20:51.
fysiks is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 11-15-2015 , 21:17   Re: [ HELP ] Make .ini or .cfg file to plugin?
Reply With Quote #14

I know what you're getting at, but that doesn't mean that someone can't learn from what you hand to them. Plus you're throwing all of this 'well that's actually not a cfg file' stuff at him--you know what he is asking for why get so technical? Technically it is configuring which weapons the plugin will use so it can be considered a config file even if it's not the same format as one used to set cvars for HLDS.
__________________
Bugsy is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 11-16-2015 , 09:06   Re: [ HELP ] Make .ini or .cfg file to plugin?
Reply With Quote #15

Thank Bugsy, I will study well your code.
fysiks, in this case it is better to post the entire code because I have not found another way to understand how the configuration system, now it was a simple case, just drive me there is something I try to do, you do not want help, beauty, but do not criticizing the way to teach other people...
__________________









Last edited by CrazY.; 11-16-2015 at 09:11. Reason: '-'
CrazY. is offline
Old 11-16-2015, 10:27
CrazY.
This message has been deleted by CrazY..
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 11-16-2015 , 11:33   Re: [ HELP ] Make .ini or .cfg file to plugin?
Reply With Quote #16

There is a tutorial: https://forums.alliedmods.net/showthread.php?t=46218
It may be a bit outdated, didn't read it since loong time, but it may help you to understand better.
__________________
HamletEagle is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 11-16-2015 , 12:05   Re: [ HELP ] Make .ini or .cfg file to plugin?
Reply With Quote #17

The code of the Bugsy it worked, but I have a little doubt about the .ini file.
Code:
[Bot Weapons]
weapon_ak47
weapon_m4a1
weapon_sg552
weapon_p90
How do I block the reading of texts [ ] or ( ) ?
__________________








CrazY. is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 11-16-2015 , 16:59   Re: [ HELP ] Make .ini or .cfg file to plugin?
Reply With Quote #18

Look at my code and figure it out. It has similar checking in there for ; and //.
__________________
Bugsy is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 11-16-2015 , 18:31   Re: [ HELP ] Make .ini or .cfg file to plugin?
Reply With Quote #19

Quote:
Originally Posted by CrazY. View Post
Thank Bugsy, I will study well your code.
fysiks, in this case it is better to post the entire code because I have not found another way to understand how the configuration system, now it was a simple case, just drive me there is something I try to do, you do not want help, beauty, but do not criticizing the way to teach other people...
The code that I told you to look at does EXACTLY the same thing that you are wanting to do here. Just giving people code is not teaching when the code is practically trivial and you've already been given an example of what you asked for.
__________________
fysiks is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 11-17-2015 , 07:07   Re: [ HELP ] Make .ini or .cfg file to plugin?
Reply With Quote #20

The examples you gave me served, only added this configuration method in the zombie_plague.sma own, so it's not very useful to use the code from you. Thank for the help.
__________________








CrazY. is offline
Reply



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 15:58.


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