Hi there, I'll just go straight onto my problem. I have a gaming bot, that is supposed to save players' score into a hash table. That, I have managed without any problems. However, I have a problem when I'm going to load the hash table from an external file when starting the bot.
Here is my code, that first saves the hash table upon command "shutdown":
on *:text:shutdown:? {
if ( $nick == %rootn ) { hsave -o rps rps.txt | exit }
}
So far, so good. Here is my problem though, the loading command, that is supposed to load the hash table upon starting the bot:
on *:start:{
hload -s rps rps.txt
}
When I start the bot, I get this message as it's trying to load the hash table: "* /hload: no such table 'rps' (line 2, script.ini)". I really can't understand what I am doing wrong. Any help is greatly appreciated!
Regards,
Wishie