I just started learning hash tables and it looks easy, I just can't figure out exactly how to use them and add data to tables.
I currently have an IP script which stores all user IP's in an INI file. Now that there are more users stored in the INI, it takes longer to retrieve information from the INI as its size increases. I've made a script that literally completely converts my method of IP storage from INI's to hash tables, but I can't see how adding data to tables work.
Some users have dynamic IP (hence multiple IP's must be stored under their name), and others have static. I'm trying to add the information to the tables like this: /hadd userips <nick> <ip>, which adds the first IP, but then when I go to add another, it overwrites the current IP with the new one even when the IP is different. So I guess my question is why can't I add multiple values? How can I store IP's using hash tables since my method doesn't work?
Any help is always appreciated. Thanks =)