mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Nov 2006
Posts: 35
N
Ameglian cow
OP Offline
Ameglian cow
N
Joined: Nov 2006
Posts: 35
Hi,

We have been using the following text in a talker script for years and it has always worked:

on *:start:{
hmake names 30
hload names c:\names.m#t
}
on *:TEXT:*my age is*:#:{
set %addnickchan $chan
addname $nick $$4-
msg %addnickchan your age has been recorded as $hget(names, $nick) wink
echo 3 @debug name $nick added


When someone says 'my age is XX' the script has always written to a file named names.m#t on my C: drive. It works fine with mIRC 6.12, but does not work with mIRC 6.2. Does anyone have an idea why it won't work?

Thanks,

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Unless you have an alias called addname, the problem is that addname isn't a valid mIRC command.

I'd recommend the following to replace your ON TEXT event
Code:
 on *:text:my age is*:#:{
.hadd -m names $nick $$4-
.msg $chan Your age, $nick $+ , has been recorded as $hget(names,$nick)
echo 3 @debug name $nick added
}
 

Note: This will not write to a text file, but will store the information in the hash table.

Joined: Nov 2006
Posts: 35
N
Ameglian cow
OP Offline
Ameglian cow
N
Joined: Nov 2006
Posts: 35
Thank you very much smile it works well now


Link Copied to Clipboard