mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Mar 2004
Posts: 14
A
Pikka bird
OP Offline
Pikka bird
A
Joined: Mar 2004
Posts: 14
If I write a line to an ini file lets say /writeini test.ini testsection ;p; test

I can't do $readini(test.ini,testsection,;p;) I get "Insufficient Parameters".

Last edited by Axodious; 16/05/08 03:56 PM.
Joined: Aug 2005
Posts: 1,052
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
I do believe that you can't read it because in a script it acts as a comment out

I could be wrong but to my knowledge semi-colons are used to comment out and im not to sure how it picks up from $readini even using CHARSET 59 can't even suffice.

You could pull the item using $ini(file,1,1) but as for the data can't pull out unless im doing something wrong.


Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }
Joined: Nov 2006
Posts: 1,559
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
the ; indicates a comment in the ini file itself: http://en.wikipedia.org/wiki/INI_file

to get arround this, for example prefix all items with a dummy char:
//writeini test.ini testsection $+(•,;testitem) ;testvalue
//echo -a $readini(test.ini,testsection,$+(•,;testitem))


Link Copied to Clipboard