KFM182 Posted May 28, 2015 Report Share Posted May 28, 2015 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 Link to comment Share on other sites More sharing options...
err0r Posted May 28, 2015 Report Share Posted May 28, 2015 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 Link to comment Share on other sites More sharing options...
KFM182 Posted May 29, 2015 Author Report Share Posted May 29, 2015 Thank you err0r this works fine. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now