mIRC Homepage
Posted By: WarlockW hash table ? hadd .. - 16/10/05 04:54 AM

anyway to get hadd
to add everything on one line ?

/hadd -m add-stuff $nick %addnow

makes ..

nick
addnow-stuff

i kinda need it all one one line

nick addnow-stuff

help ?
Posted By: DaveC Re: hash table ? hadd .. - 16/10/05 07:30 AM
In the case of /hadd -m add-stuff $nick %addnow

$nick is the name of the item in the hashtable and %addnow well be the contents of that item.
What do u mean by showing them on two lines im not sure?

If your meaning when you do a /HSAVE you get
nick
addnow-stuff

WELL you could do this

/hadd -m add-stuff $nick $nick %addnow
/hsave -n add-stuff add-stuff.txt

But you have to remember that there is now and extra word on the start of the $hget(add-stuff,nick) being the nick (itemname) again

OR you could do this

/hadd -m add-stuff $nick %addnow
/hsave -i add-stuff add-stuff.txt

And now you get add-stuff.txt looking like
[hashtable]
nick=addnow-stuff
nick2=addnow-stuff2
nick3=addnow-stuff3
etc etc

Might not be quite what you want, but its close.
Posted By: WarlockW Re: hash table ? hadd .. - 16/10/05 02:09 PM
thanks dave ..

yea .. that may work ..
© mIRC Discussion Forums