Page 1 of 1

[BUG] getRoomIDByHash function problem

Posted: Sat Jan 22, 2011 11:25 pm
by elminster
I am using this function in a statement like
Code: [show] | [select all] lua
echo("Hash="..hash)
local  rId = getRoomIDByHash(hash)
where echo writes "Hash=+0+0-1", and I am getting the following error:
Code: [show] | [select all] lua
function:<Trigger5>
         <[string "function IgorPack.isRoomDesc()..."]:37: attempt to call global 'getRoomIDByHash' 
(a nil value)>
Is this a bug or am I doing something wrong? Strange thing is that setRoomIDByHash executes before if without problems.

Re: [BUG] getRoomIDByHash function problem

Posted: Sat Jan 22, 2011 11:59 pm
by Heiko
The hash functions had a bug. It's fixed in git and today's windows snapshot available here http://sourceforge.net/projects/mudlet/files/

Your problem, however, is that it's getRoomIDbyHash() with a small b.