Raised This Month: $ Target: $400
 0% 

File functions.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
mysticssjgoku4
Veteran Member
Join Date: Jan 2005
Location: Chicago Heights, IL
Old 06-02-2006 , 15:09   File functions.
Reply With Quote #1

Alright, I've decided to give up some old habits and use .ini files for certain things.

Now, I have a few questions to ask because I'm more of an SQL experienced person rather than file function experienced.

I've tried to go through the function list at the FUNCWIKI but it's all so....confusing is the word?

But anyhow, I was wondering if someone could give me an example so I could perhaps understand a bit better and build off of it.

::::::::::::::::::::::::::::::::
Alright, now I've coded a simple plugin to manage bots on my fathers server.

The thing is, I want to be able to load different settings per map, but I want them stored in a file so that it is easy for him to edit.

The mod I'm using is Valve, which makes not a difference, but this is some extra information.

Now, I have the map "crossfire"

I want to store settings with tags above the list of settings I want used for that map.

Example:
Map "datacore" is loaded

AMXX reads from the bot_config.ini and looks for the tag "[datacore]"
and below that, there are settings like

Quote:
[datacore]
mp_timelimit "30"
addbot gman newbie 2
addbot scientist player 3

[crossfire]
mp_timelimit "25"
addbot gina ownage 1
addbot gordon player 5
I've seen people use files before in other plugins, but I figured if I asked for a quick and simple example, I could use that.

Again, thanks for anyone who helps, it's much appreciated.

-RW
__________________

mysticssjgoku4 is offline
Send a message via AIM to mysticssjgoku4 Send a message via MSN to mysticssjgoku4
 



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 16:26.


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