|
|
Joined: Apr 2005
Posts: 53
Babel fish
|
OP
Babel fish
Joined: Apr 2005
Posts: 53 |
//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? * /writeini: insufficient parameters << this is the error, anybody can help me?
|
|
|
|
Joined: Dec 2002
Posts: 1,245
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,245 |
try it like this
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
|
|
|
|
Joined: Oct 2004
Posts: 8,330
Hoopy frood
|
Hoopy frood
Joined: Oct 2004
Posts: 8,330 |
Yours:
//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.
/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] }
Invision Support #Invision on irc.irchighway.net
|
|
|
|
Joined: Apr 2005
Posts: 53
Babel fish
|
OP
Babel fish
Joined: Apr 2005
Posts: 53 |
You missunderstand me 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 Somebody have a solution?
Last edited by aDevil; 10/05/05 06:47 PM.
|
|
|
|
Joined: Dec 2002
Posts: 1,245
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,245 |
I'm not sure what you really want but this is not what ini files are for [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?
|
|
|
|
Joined: Apr 2005
Posts: 53
Babel fish
|
OP
Babel fish
Joined: Apr 2005
Posts: 53 |
thanks the information
|
|
|
|
Joined: Oct 2004
Posts: 8,330
Hoopy frood
|
Hoopy frood
Joined: Oct 2004
Posts: 8,330 |
Ok, I see what you want for n3.... use this:
//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.
Last edited by Riamus2; 10/05/05 07:07 PM.
Invision Support #Invision on irc.irchighway.net
|
|
|
|
Joined: Oct 2004
Posts: 8,330
Hoopy frood
|
Hoopy frood
Joined: Oct 2004
Posts: 8,330 |
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.
Invision Support #Invision on irc.irchighway.net
|
|
|
|
Joined: Dec 2002
Posts: 1,245
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,245 |
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.
|
|
|
|
Joined: Sep 2003
Posts: 4,230
Hoopy frood
|
Hoopy frood
Joined: Sep 2003
Posts: 4,230 |
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?
|
|
|
|
Joined: Dec 2002
Posts: 1,245
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,245 |
|
|
|
|
Joined: Apr 2005
Posts: 53
Babel fish
|
OP
Babel fish
Joined: Apr 2005
Posts: 53 |
Thanks guys it is working very well for me
|
|
|
|
|
|