Raised This Month: $ Target: $400
 0% 

Using ini files


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
dreamedward
Senior Member
Join Date: Aug 2010
Location: ZombieWorld
Old 06-13-2011 , 09:25   Using ini files
Reply With Quote #1

Hey,
Could you give me some lessons about using an .ini file. Like I want to make a plugin that uses an .ini file to get the admin's name and paste before his nick a tag that is written into the .ini file. Like:
"This is the admin's nick" "here is his tag".
Thanks!
dreamedward is offline
jimaway
Heeeere's Jimmy!
Join Date: Jan 2009
Location: Estonia
Old 06-13-2011 , 13:10   Re: Using ini files
Reply With Quote #2

looks like you dont need ini files for that...

Quote:
Originally Posted by en.wikipedia.org
Properties
The basic element contained in an INI file is the property. Every property has a name and a value, delimited by an equals sign (=). The name appears to the left of the equals sign.
PHP Code:
name=value 
Sections
Properties may be grouped into arbitrarily named sections. The section name appears on a line by itself, in square brackets ([ and ]). All properties after the section declaration are associated with that section. There is no explicit "end of section" delimiter; sections end at the next section declaration, or the end of the file. Sections may not be nested.
PHP Code:
[section
Comments
Semicolons (;) indicate the start of a comment. Comments continue to the end of the line. Everything between the semicolon and the end of the line is ignored.
PHP Code:
comment text 
jimaway is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-13-2011 , 18:46   Re: Using ini files
Reply With Quote #3

It's all here: http://forums.alliedmods.net/showthread.php?t=15067
__________________
fysiks is online now
dreamedward
Senior Member
Join Date: Aug 2010
Location: ZombieWorld
Old 06-14-2011 , 11:58   Re: Using ini files
Reply With Quote #4

Quote:
Originally Posted by fysiks View Post
Thanks!
dreamedward 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 23:35.


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