mIRC Home    About    Download    Register    News    Help

Print Thread
#41296 12/08/03 02:56 PM
Joined: Jan 2003
Posts: 148
K
Knappen Offline OP
Vogon poet
OP Offline
Vogon poet
K
Joined: Jan 2003
Posts: 148
Hi!

My script makes a hash table named users.
i use hmake users 1000 to create it...

But when i exit mirc and restart it, the hash table is deleted. Why? I thought that hash tables didn`t delete them selves on exit...?

thanks for any help! smile

#41297 12/08/03 02:59 PM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
They do remove themselves on EXIT smile

Use /hsave on EXIT and /hload on START to keep the data. Also remember that on EXIT doesn't trigger when you reset without closing mIRC first (atleast not for me on XP), so you may want to use /hsave every time you make a change to the table instead.

#41298 12/08/03 04:23 PM
Joined: Feb 2003
Posts: 2,812
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
Most bots will save their tables hourly, especially for large user lists. You may consider using a /timer -o with /hsave -o.

- Raccoon


Well. At least I won lunch.
Good philosophy, see good in bad, I like!

Link Copied to Clipboard