Script Stats

Soldat Central :: Index > Functions > View Script

MEMBER LOGIN

Username:

Password:

Remember me?

Not a member? Register now!

Lost Password? Click here

LATEST SCRIPTS

Private Knife Only S... by Mighty

Function ReadLine by Squiddy

Accuracy Script for... by Mighty

TOP SCRIPTS

Curts Script Update... by DorkeyDear

Soldat Portal by MetalWarrior

Unpause Countdown by SpiltCoffee

FEATURED SCRIPTS

- Script of the Week -

Accuracy Script for...

by Mighty

- Script of the Month -

Accuracy Script for...

by Mighty

RECENTLY VIEWED

INI Functions by DorkeyDear

Spawner vADMIN by dominikk26

Calls by DorkeyDear

QUICK SEARCH

IRC Channel

#soldat.central on QuakeNet


Soldat Top 100
Donate towards my web hosting bill!

INI Functions by DorkeyDear

Script Name: INI Functions Add Favorite
Author: DorkeyDear
Release Date: 5th of August 2008 (2 years ago)
Compile Test: Passed
Total Score: 4 (3 Ratings) - Ratings -
5
4
3
2
1
Rate Script:
Server Version: 2.6.3
Last View: 7th of September 2010 @ 11:09:19 AM
Last Download: 6th of September 2010 @ 01:09:15 AM

Total Views: 635
Total Downloads: 97
Bandwidth: 275.84 KB (estimate)
Total Size: 2.84 KB
   

Script Description
Parses an INI file

Functions:
function Create(const Filename: string): byte;
Reads and parses an ini file
Returns a handle id
Be sure to destroy it before you want to never use it again
procedure Destroy(const Handle: byte);
Destroys the ini handle
function Exists(const Handle: byte): boolean;
Returns whether or not an ini handle is valid or not
function TopicExists(const Handle: byte; const Topic: string): boolean;
Returns whether or not a given topic exists
function NameExists(const Handle: byte; const Topic, Name: string): boolean;
Returns whether or not a given name exists
function GetValue(const Handle: byte; const Topic, Name: string): string;
Returns the value of a given ini handle, topic, and name as a string

Constants:
RemoveWhitespace
RemoveComments
CaseSensative

CSUS Support:
This script is supported by Curts Script Update Service script, which uses the CSUSInfo.ini and ignore.txt files. If you wish to disable the update support of this script, remove these files. If you do not have the CSUS script, removing or renaming these files will have no harm to this script.






Script Contents
Name Size Note
ini.pas 833 B
readme.txt 1.56 KB
CSUSInfo.ini 61 B
Includes.txt 8 B
core.pas 6.21 KB
ignore.txt 0 B





Comments
DorkeyDear
Posted 2 years ago |

Scripter
Update:
• now allows CrossFunc (new functions)

DorkeyDear
Posted 2 years ago |

Scripter
There will be an update in the near future with the support for this to be in a separate script, and using CrossFunc in order to use the functions. This will be helpful if you are using many of my scripts sense the compiler should have less to compile.

DorkeyDear
Posted 2 years ago |

Scripter
I have a few ideas for a future version:
• "" quotes
• [] arrays (probably not)
• support for backslashing
• # and ; commands
everything put into constants, or possibly an ini file, or an input

iDante
Posted 2 years ago |

Scripter
very useful and well made, clean, etc. Nice work


Add Comment

Not a member? Register now!




"Most people have the will to win, few have the will to prepare to win."