mIRC Home    About    Download    Register    News    Help

Print Thread
#19750 16/04/03 11:49 PM
Joined: Jan 2003
Posts: 73
K
kupotek Offline OP
Babel fish
OP Offline
Babel fish
K
Joined: Jan 2003
Posts: 73
I was told its better to not have aliases/remotes that set variables onLoad or connect.. etc.. but to use hashtables and groups whats a easy way to do this?


#19751 16/04/03 11:56 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
Honestly, if you plan on doing casual scripting, and not too large of a script either will work. If you need something with a speedy responce time, then hash tables are your best bet.

Ex:
Having a seen script that you would like to search through hundreds (if not thousands) of nicknames looking for a date when they were last seen--definalty a hash table. If you want something that is going to store a very minimul amount of data, just use variables. grin


-KingTomato
#19752 17/04/03 08:12 AM
Joined: Dec 2002
Posts: 54
L
laz Offline
Babel fish
Offline
Babel fish
L
Joined: Dec 2002
Posts: 54
Well this is just me, but I only use variables in loops (local).

If you need to store something, use .ini files, more organized I think. Unless you want speedy results then use hash tables, although I don't know why you'd need that fast of results for a chat program.

#19753 17/04/03 11:01 AM
Joined: Dec 2002
Posts: 395
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Dec 2002
Posts: 395
/help hash tables
/help groups

#19754 17/04/03 04:13 PM
Joined: Jan 2003
Posts: 73
K
kupotek Offline OP
Babel fish
OP Offline
Babel fish
K
Joined: Jan 2003
Posts: 73
oki thanks all


Link Copied to Clipboard