SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 14/05/2006, 06:03 PM   #1
DracoBlue
Gangsta
 
Join Date: Apr 2006
Posts: 817
Reputation: 48
Default [Dini] INI-files easy! (1.6, 16th Sep 2008)

Lots of guys can't use file write/read-functions, so I give you a ini-file-engine, which just works!

DINI 1.6:
o Download (25000++ Downloads - thanks!)
o HowTo (New HowTo) Dini Login/Register-System
o Blogpost
Hope it will be useful.

Regards,
Jan (DracoBlue)

( Download for previous Version: 1.5.1 )
__________________
Auto-Indent Your Code online with TidyPawn

dcmd 1.0 | dini 1.6 | djson 1.6.2 (The offic. Dini²) | DMap 0.4 | DModule 0.13 (Dynamic GM/FS) | DUDB 2.4 | DTest 1.2 | Dutils 1.10

[dracoblue's dev-diary][php + javascript developer][serverside javascript mvc framework]


Last edited by DracoBlue; 07/07/2010 at 10:06 PM.
DracoBlue is offline   Reply With Quote
Old 14/05/2006, 06:05 PM   #2
caytchen
Little Clucker
 
Join Date: Apr 2006
Posts: 1
Reputation: 0
Default Re: [Dini] INI-files easy!

Workaholic?
caytchen is offline   Reply With Quote
Old 14/05/2006, 06:06 PM   #3
DracoBlue
Gangsta
 
Join Date: Apr 2006
Posts: 817
Reputation: 48
Default Re: [Dini] INI-files easy!

Quote:
Originally Posted by caytchen
Workaholic?
No, just insane .
__________________
Auto-Indent Your Code online with TidyPawn

dcmd 1.0 | dini 1.6 | djson 1.6.2 (The offic. Dini²) | DMap 0.4 | DModule 0.13 (Dynamic GM/FS) | DUDB 2.4 | DTest 1.2 | Dutils 1.10

[dracoblue's dev-diary][php + javascript developer][serverside javascript mvc framework]

DracoBlue is offline   Reply With Quote
Old 15/05/2006, 09:20 AM   #4
Slick
Little Clucker
 
Join Date: May 2006
Posts: 2
Reputation: 0
Default Re: [Dini] INI-files easy!

thanks
Slick is offline   Reply With Quote
Old 29/05/2006, 01:18 AM   #5
Masta
Little Clucker
 
Join Date: Apr 2006
Posts: 3
Reputation: 0
Default Re: [Dini] INI-files easy!

where can i find a list of functions and their usage?
And the dini.dtest script only does the does the first test (Create & Exists) then the server crashes am i doing something wrong?
Masta is offline   Reply With Quote
Old 29/05/2006, 01:57 AM   #6
DON_FAF
Little Clucker
 
DON_FAF's Avatar
 
Join Date: Apr 2006
Location: Brazil
Posts: 26
Reputation: 2
Default Re: [Dini] INI-files easy!

Thx jan
__________________
DON_FAF is offline   Reply With Quote
Old 29/05/2006, 03:56 AM   #7
Masta
Little Clucker
 
Join Date: Apr 2006
Posts: 3
Reputation: 0
Default Re: [Dini] INI-files easy!

Quote:
Originally Posted by Y_Less
The functions are in the .inc and their use can be derived from looking at the code. Do you have DUtils?
Yes i have DUtils and the Dtest thing for that works alright
Masta is offline   Reply With Quote
Old 29/05/2006, 09:47 AM   #8
DracoBlue
Gangsta
 
Join Date: Apr 2006
Posts: 817
Reputation: 48
Default Re: [Dini] INI-files easy!

Do you have a folder called scriptfiles ?
__________________
Auto-Indent Your Code online with TidyPawn

dcmd 1.0 | dini 1.6 | djson 1.6.2 (The offic. Dini²) | DMap 0.4 | DModule 0.13 (Dynamic GM/FS) | DUDB 2.4 | DTest 1.2 | Dutils 1.10

[dracoblue's dev-diary][php + javascript developer][serverside javascript mvc framework]

DracoBlue is offline   Reply With Quote
Old 01/06/2006, 02:01 AM   #9
Masta
Little Clucker
 
Join Date: Apr 2006
Posts: 3
Reputation: 0
Default Re: [Dini] INI-files easy!

Quote:
Originally Posted by DracoBlue
Do you have a folder called scriptfiles ?
No i didn't, thanks that fixed it
Masta is offline   Reply With Quote
Old 15/07/2006, 02:12 PM   #10
ProRaiL
Big Clucker
 
Join Date: Jul 2006
Posts: 81
Reputation: 0
Default Re: [Dini] INI-files easy!

i found some scary shit here, dini_Set wasn't writing numbers in "value", so i replaced:
Code:
   strcat(tmpres,key);
   strcat(tmpres,"=");
   strcat(tmpres,value);
with:
Code:
format(tmpres, 256, "%s=%d", key, value);
now it works well
ProRaiL is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Way to change .map (MTA Map) files to .pawn (SAMP Files)- luey41 Scripting Help 6 30/07/2012 11:26 PM
[Help] Maybe a easy question for dini users Niixie Help Archive 2 21/01/2010 07:04 PM
Need help with loading multiple info from files [dini] KuHS Help Archive 2 28/10/2009 06:33 PM
KOM on MTA RU Photosession 2008 (Christmas Movie) - 27.12.2008 Legenda Screenshots and Videos 8 12/07/2009 02:49 PM


All times are GMT. The time now is 07:16 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.