mIRC Home    About    Download    Register    News    Help

Print Thread
#161861 12/10/06 02:57 AM
Joined: Apr 2006
Posts: 43
D
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Apr 2006
Posts: 43
I was wondering...
How would I use the following script to write. Cause its doesnt write.

Code:
on *:text:!write*:#: {
  writeini $2 server nickname $3
}
  

#161862 12/10/06 03:13 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
The writeini command should only be used with ini files.
if $2 isn't specified, then nothing will be written
if $2 is specified, then it should write to the file with the same name as is in $2
It would then write a section called server
and an item called nickname (followed by the contents of $3)

It's usually best to specify a specific filename when using /write or /writeini

As to your code, as long as $2 and $3 are both supplied, then it does work.

#161863 12/10/06 01:33 PM
Joined: Oct 2006
Posts: 11
W
Pikka bird
Offline
Pikka bird
W
Joined: Oct 2006
Posts: 11
like he said ..

writeini file.ini $2 $3 ???

writeini file.ini $nick server (something-to-write)

in the ini it would look like like this ...

[Elmerfud]
server=(something-to-write)


Hope this helps ...


Link Copied to Clipboard