I'm a new and i not understand how I can show all item in hashtable.
ex:
I try this.
on *:TEXT:*:#: {
had -m test te1 $nick
timer1 0 10 msg # $hget(test,te1)
}
for the bot say all in the hashtable bot he say only the last use this command
A TG007 community discussion started by KFM182.
I'm a new and i not understand how I can show all item in hashtable.
ex:
I try this.
on *:TEXT:*:#: {
had -m test te1 $nick
timer1 0 10 msg # $hget(test,te1)
}
for the bot say all in the hashtable bot he say only the last use this command
alias hashtest {
hadd -m test bleh $+ $rand(1,99999) hey $rand(1,99999)
var %a = 1
while ($hget(test,%a).item) {
echo -a Item: $hget(test,%a).item Data: $hget(test,%a).data
inc %a
}
}
Item should different for each line. Data is what is stored for that item
Get information about ircWx here
Thank you err0r this works fine. ![]()
Sign in to reply or start a new topic where your account has permission.