mIRC Home    About    Download    Register    News    Help

Print Thread
#61019 19/11/03 12:59 AM
Joined: Jul 2003
Posts: 39
X
Xanadu Offline OP
Ameglian cow
OP Offline
Ameglian cow
X
Joined: Jul 2003
Posts: 39
Is it possible to make and use more than one hash table in one remote script?

I have an on *:load: { commands that should make more than one table but it only runs the first line, then stops

Thanks

#61020 19/11/03 01:26 AM
Joined: Dec 2002
Posts: 1,893
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,893
You should be able to create almost as many tables as you want. It sounds like you have an error in the script.

#61021 19/11/03 01:31 AM
Joined: Nov 2003
Posts: 67
C
Babel fish
Offline
Babel fish
C
Joined: Nov 2003
Posts: 67
Yes is posibly, if only run the first line surely the code finds an error and stop. Use flag -s to detects error.

#61022 19/11/03 02:31 AM
Joined: Jul 2003
Posts: 39
X
Xanadu Offline OP
Ameglian cow
OP Offline
Ameglian cow
X
Joined: Jul 2003
Posts: 39
I dunno why the hmake command was not just making them, but I added an if() check to see if the table alread existed and it started to work.

Thanks

#61023 19/11/03 02:35 AM
Joined: Dec 2002
Posts: 1,893
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,893
Yea /hmake fails (and halts the script) if you try to create a table that already exists.

#61024 19/11/03 02:59 AM
Joined: Jul 2003
Posts: 39
X
Xanadu Offline OP
Ameglian cow
OP Offline
Ameglian cow
X
Joined: Jul 2003
Posts: 39
ok, anyone know why /hsave -nou would save a blank line for every entry in the hash table without saving the info?

NOTE: the items in the hash table were added using the -uN switch

Thanks

#61025 19/11/03 01:04 PM
Joined: Dec 2002
Posts: 1,893
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,893
Why do you use -n? it tells /hsave to save "data only".


Link Copied to Clipboard