Skip to content
General Chat Talk

Hashtable Help

A TG007 community discussion started by KFM182.

Discussion 3 posts
Page 1 of 1
Open
Topic #16144 · 3 published posts · 1,025 views

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. :D