mIRC Home    About    Download    Register    News    Help

Print Thread
#88539 29/06/04 01:27 AM
Joined: Jun 2004
Posts: 6
S
shawsys Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
S
Joined: Jun 2004
Posts: 6
I have scripted many functions in diferent mIRC installations and I keep a CD-ROM backup with this scripts. Now I was writing my new personal script and tried to get an important alias in my old script. If I use the alias in the old script (mIRC 6.03) it works fine, but if I use it in my new script (mIRC 6.15) it returns me an error:
* /writeini: insufficient parameters (line 154, aliases.ini)
I already checked if the command executed by the script was missing a parameter so I put an echo command before the line that uses the writeini command and could see that is no parameter missing:
sys\tmp\clonescan.tmp test *!*@shaw.host.domain shaw
Is there something wrong with /writeini in mIRC 6.15 or something changed since mIRC 6.03 ?

#88540 29/06/04 03:52 PM
Joined: Mar 2004
Posts: 130
T
Vogon poet
Offline
Vogon poet
T
Joined: Mar 2004
Posts: 130
maby you sould change sys\tmp\clonescan.tmp to sys\tmp\clonescan.ini becuse it seamse thet sys\tmp\clonescan.tmp is not a ini file

#88541 29/06/04 04:15 PM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
Type //echo * $isalias(writeini).fname

If it echos a file, go there and delete the alias.

#88542 29/06/04 04:18 PM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
The file extension doesn't matter to /writeini, but it will fail if the directory structure is missing.

#88543 29/06/04 05:34 PM
Joined: Mar 2004
Posts: 130
T
Vogon poet
Offline
Vogon poet
T
Joined: Mar 2004
Posts: 130
if the extension doesn't mater u sould use just /write

I nothing found in the help file thet says use writeini for every extension

all i found is /writeini -n <inifile> <section> <item> <value>

Writes to files in the standard INI file format.

i also think the file sould be a standart ini format if you want use n0=, n1= etc else would be just write the best sulotion in my option

if i am wrong prove it pls!

EDIT:
I actuali test it and the extesion dosen meader but i am not sure if this is the right way smirk

Last edited by tsoglanos; 29/06/04 05:41 PM.
#88544 30/06/04 12:03 PM
Joined: Apr 2003
Posts: 701
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Apr 2003
Posts: 701
The name of the file does not influence it's contents. The format of an ini-file is

[topic]
item1=data
item2=moredata

As long as a file, whataver name it has, complies with this general structure, it's an ini-file and $ini, /writeini and $readini can be used on it.

#88545 30/06/04 12:30 PM
Joined: Mar 2004
Posts: 130
T
Vogon poet
Offline
Vogon poet
T
Joined: Mar 2004
Posts: 130
if you read my post you will realise I now this allready!


Last edited by tsoglanos; 30/06/04 12:40 PM.
#88546 30/06/04 06:43 PM
Joined: Jun 2004
Posts: 6
S
shawsys Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
S
Joined: Jun 2004
Posts: 6
Guys, it isnĀ“t a problem of the extension of the file or the directory structure. It tells me that a parameter is missing !
* /writeini: insufficient parameters
why if all the parameters are there as I said in the 1st msg ?

#88547 30/06/04 07:00 PM
Joined: Mar 2004
Posts: 130
T
Vogon poet
Offline
Vogon poet
T
Joined: Mar 2004
Posts: 130
If you post here your alias

it would be easy to see what maby the reason is

i test what you post and here it works good

[test]
*!*@shaw.host.domain=shaw

is this what your file sould look like?

Last edited by tsoglanos; 30/06/04 07:11 PM.
#88548 01/07/04 01:32 AM
Joined: Jun 2004
Posts: 6
S
shawsys Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
S
Joined: Jun 2004
Posts: 6
its ok. I coded another clonescan using hash tables. It was good, now I know how to handle with hashes.. >)

#88549 01/07/04 03:48 PM
Joined: Sep 2003
Posts: 261
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Sep 2003
Posts: 261
hrm, go fish.


We don't just write the scripts, we put them to the test! (ScriptBusters)

Link Copied to Clipboard