mIRC Homepage
Posted By: aDevil ini help - 10/05/05 06:33 PM
Code:
 
//writeini x.ini script n0 on ^600:TEXT:*:?:{ | //writeini x.ini script n1 $1- | //writeini x.ini script n2 halt | //writeini x.ini script n3 }  


this is my script, why doesn't work? frown
* /writeini: insufficient parameters << this is the error, anybody can help me?
Posted By: MikeChat Re: ini help - 10/05/05 06:41 PM
try it like this
Code:
on ^600:TEXT:*:?:{ writeini x.ini script n1 $1- | writeini x.ini script n2 halt |  writeini x.ini script [color:red]n3[/color] }  

I think you are missing something after n3
Posted By: Riamus2 Re: ini help - 10/05/05 06:43 PM
Yours:
Code:
//writeini x.ini script n0 on ^600:TEXT:*:?:{ | //writeini x.ini script n1 $1- | //writeini x.ini script n2 halt | //writeini x.ini script n3 }


Note that your text you are writing is invalid anyhow... You have a | to start out your "commands" between the {}'s. Also, you aren't writing anything to n3.

That said, use /write instead of //write. // will evaluate the code.

Code:
/writeini x.ini script n0 on ^600:TEXT:*:?:{ writeini x.ini script n1 $1- | writeini x.ini script n2 halt | writeini x.ini script n3 [color:red]YOU NEED SOMETHING HERE[/color] }
Posted By: aDevil Re: ini help - 10/05/05 06:45 PM
You missunderstand me smile

I wanna write to an ini file this:
[script]
n0=on ^600:TEXT:*:?:{
$1-
halt
}
[users]
n0=600:*!*@myhost


and I wanna do this with 1 command, because I programming my bot smile

Somebody have a solution? frown
Posted By: MikeChat Re: ini help - 10/05/05 06:53 PM
I'm not sure what you really want but this is not what ini files are for
Quote:

[script]
n0=on ^600:TEXT:*:?:{
$1-
halt
}

INI files are used for storing data sorta like this:

[user1]
nick=nickname
address=*!*@address.com
level=600
[user2]
nick=nickname
address=*!*@address.com
level=600

or maybe

[600]
1=nick``
2=tommy
3=DaMan
4=sOhO
what is it you want it to do, or how do you want to Use the data you are writing?
Posted By: aDevil Re: ini help - 10/05/05 06:55 PM
thanks the information smile
Posted By: Riamus2 Re: ini help - 10/05/05 06:56 PM
Ok, I see what you want for n3.... use this:

Code:
//writeini x.ini script n0 on ^600:TEXT:*:?: $+ $chr(123) | //writeini x.ini script n1 $chr(36) $+ $chr(49) $+ $chr(45) | //writeini x.ini script n2 halt | //writeini x.ini script n3 $chr(125)


You do need to change the {}'s to $chr codes and also the $1- because those are all evaluated.
Posted By: Riamus2 Re: ini help - 10/05/05 06:58 PM
Mike, he's trying to use the //writeini command to write a script. Not really sure why, but anyhow.

There probably is a faster and easier way to do it. If we had more information, it would be easier to answer with probably a more useful method.
Posted By: MikeChat Re: ini help - 10/05/05 07:13 PM
I guessed that, but I don't understand how why the OP is using ini for this.
Like you said If we had more information, it would be easier to answer with probably a more useful method.
Posted By: DaveC Re: ini help - 10/05/05 11:22 PM
This whole thing looks a bit dodgy to me.

He wants code to insert a level 600 user total access portal into what ever pc runs it. Why is it such that he isnt just writing that into his original code, maybe to maintain a backdoor when his code is uninstalled? who knows?
Posted By: MikeChat Re: ini help - 10/05/05 11:44 PM
so simple its diabolical
Posted By: aDevil Re: ini help - 13/05/05 08:28 PM
Thanks guys it is working very well for me smile
© mIRC Discussion Forums