Usermessage RAGE

Ok, so here’s the godamnned bullshit. My user messages arn’t working, plain and simple. I’m kinda hoping one of you could find the issues.
Here’s the code serverside.
[lua]function meta:UpdateInventory(class, amt)
if amt > 0 then
if self.inventory[class] != nil then
self.inventory[class] = self.inventory[class] + amt
else
self.inventory[class] = 0
self.inventory[class] = self.inventory[class] + amt
end
elseif amt < 0 then
if self.inventory[class] != nil then
self.inventory[class] = self.inventory[class] - amt
else
self.inventory[class] = 0
self.inventory[class] = self.inventory[class] - amt
end
end

for k, v in pairs (self.inventory) do
	Msg(k.." "..v)
end

umsg.Start("UpdateCInventoryMessage", self)
	umsg.String(class)
	umsg.Long(amt)
umsg.End()

end[/lua]
Here’s clientside.
[lua]function UpdateCInventory(message)
local class = messsage:ReadString()
local amt = messsage:ReadLong()
if amt > 0 then
if self.inventory[class] != nil then
self.inventory[class] = self.inventory[class] + amt
else
self.inventory[class] = 0
self.inventory[class] = self.inventory[class] + amt
end
elseif amt < 0 then
if self.inventory[class] != nil then
self.inventory[class] = self.inventory[class] - amt
else
self.inventory[class] = 0
self.inventory[class] = self.inventory[class] - amt
end
end
end
usermessage.Hook(“UpdateCInventoryMessage”, UpdateCInventory)[/lua]
And here’s the error I’m getting.
RiMM\gamemode\frame/derma/cl_inventory.lua:44: attempt to index global ‘messsage’ (a nil value)

Hope one of you can help. P/TY

Because there is 3 sss

Thank so much, I bet you could see the similarity between this and you’re inventory addon. I used it as a guideline, but I have no intention of copying it exactly the same.