mIRC Home    About    Download    Register    News    Help

Print Thread
#192594 05/01/08 09:41 PM
Joined: Mar 2007
Posts: 139
S
Solo1 Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: Mar 2007
Posts: 139
Greetings

I am having problems with /hload this is what i am doing

/hmake lol
/hsave lol lol
/hfree lol
/hload lol lol

-
* /hload: no such table 'lol'


I have checked my folder and the has table lol is present i have tried with .hsh extension to no avail..

What am i doing wrong???


Solo1 #192595 05/01/08 09:43 PM
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
You need to /hmake the table before you /hload it.


Spelling mistakes, grammatical errors, and stupid comments are intentional.
Joined: Mar 2007
Posts: 139
S
Solo1 Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: Mar 2007
Posts: 139
Hi, See my post, i did /hmake it

Solo1 #192597 05/01/08 09:55 PM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
You made it then you /hfree'd it, which means you'll have to make it again.

Collective #192598 05/01/08 10:03 PM
Joined: Mar 2007
Posts: 139
S
Solo1 Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: Mar 2007
Posts: 139
but i /hsaved it? if i remake it then won't it delete the old data? and i tried without using /hfree just saving it then restarting my client and then trying to load it, it wont work

Solo1 #192599 05/01/08 10:10 PM
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
Quote:
i tried without using /hfree just saving it then restarting my client and then trying to load it, it wont work

Hash tables aren't persistent. That means unlike variables, mIRC doesn't keep track of them when you close mIRC and restart it. So if you /hmake a hash table and then restart mIRC you will need to /hmake it again.

/hsave also doesn't change that fact. All /hsave does is store the contents of the hash table in a file. It is your (the scripter's) responsibility to /hmake and /hload the contents of that file into the hash table again if you close mIRC or /hfree the table.


Spelling mistakes, grammatical errors, and stupid comments are intentional.
Joined: Mar 2007
Posts: 139
S
Solo1 Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: Mar 2007
Posts: 139
Thank-You for your time and help, much appreciated.


Link Copied to Clipboard