[BUG] getRoomIDByHash function problem

Post Reply
elminster
Posts: 1
Joined: Sat Jan 22, 2011 11:19 pm

[BUG] getRoomIDByHash function problem

Post 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.

User avatar
Heiko
Site Admin
Posts: 1548
Joined: Wed Mar 11, 2009 6:26 pm

Re: [BUG] getRoomIDByHash function problem

Post 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.

Post Reply