hey my marrage scripts fail when say !marry yes
error here:

error here:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<mod name="Marry System" version="1.0" author="Babalow" contact="dunno.com" enabled="yes">
<description>
Marriage system.
</description>
<config name="marry_config"><![CDATA[
key = 5555
divorce_enable = 1
getmarry_effect = CONST_ME_FIREWORK_RED
getask_effect = CONST_ME_HEARTS
refuse_effect = CONST_ME_CAKE
divorce_effect = CONST_ME_POFF
]]></config>
<talkaction words="!marry" event="script"><![CDATA[
domodlib('marry_config')
function onSay(cid, words, param, channel)
local pid = 0 -- dont touch it
if(param == 'yes') then
getMarried(cid, key)
elseif(param == 'no') then
refuse(cid, key)
elseif(param == 'divorce') and (divorce_enable == 1) then
getDivorced(cid)
end
if(param ~= 'yes' and param ~= 'no' and param ~= 'divorce') then
if(param == '') then
pid = getCreatureTarget(cid)
if(pid == 0) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Use !marry playername to ask someone to marry you(!marry yes/no to accept/refuse)(!marry divorce to get divorced).")
return true
end
else
pid = getPlayerByNameWildcard(param)
end
if(not pid or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid))) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player " .. param .. " is not currently online.")
return true
end
if (pid == cid) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You cant marry with yourself.")
elseif (getPlayerSex(cid) == getPlayerSex(pid) and samesexmarry == 0) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Man... That\'s not allowed.")
elseif (getPlayerStorageValue(pid, key) ~= -1 or getPlayerStorageValue(cid, key) ~= -1) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "That player already got an ask.")
elseif(isPlayer(pid) and getPlayerPartner(pid) ~= 0) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "That player is already married.")
elseif(isPlayer(cid) and getPlayerPartner(cid) ~= 0) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You are already married.")
else
doPlayerSetStorageValue(pid, key, getPlayerGUID(cid))
doSendMagicEffect(getCreaturePosition(cid), getask_effect)
doPlayerSendTextMessage(pid, MESSAGE_STATUS_CONSOLE_BLUE, ''..getCreatureName(cid)..' want to marry you. (!marry yes or !marry no)')
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, 'You asked '..getCreatureName(pid)..' to marry you.')
end
end
return true
end
]]></talkaction>
</mod>