Change db.executeQuery to db.query or add this in compat.lua/global.lua.
Code:db.executeQuery = db.query
Under
AddCode:for i = 1, #players do
After players till the "end" under that.Code:[i]
So it will be:
Code:players[i]
for i = 1, #players do
players[i]
for [i] = 1, #players[i] do
local ring = doPlayerAddItem(getPlayerByNameWildcard(getPlayerNameByGUID(players[i])), marry_config.RingID, 1)
doItemSetAttribute(ring, "description", getCreatureName(cid) .. " & " .. getPartner(cid) .. " forever - married on " ..getMarryDate(cid).. ".")
doCreatureSay(getPlayerByNameWildcard(getPlayerNameByGUID(players[i])), marry_config.Text[math.random(1,#marry_config.Text)], TALKTYPE_ORANGE_1)
doSendMagicEffect(getCreaturePosition(getPlayerByNameWildcard(getPlayerNameByGUID(players[i]))), 35)
setPlayerStorageValue(getPlayerByNameWildcard(getPlayerNameByGUID(players[i])), marry_config.storage3, 1)
setPlayerStorageValue(getPlayerByNameWildcard(getPlayerNameByGUID(players[i])), 150420, 1)
end
for i = 1, #players do
DROP TABLE `marriage_system`;
CREATE TABLE `marriage_system` (
`id` INT NOT NULL AUTO_INCREMENT,
`player_id` INT NOT NULL,
`partner` VARCHAR(255) NOT NULL,
`marriage_date` INT NOT NULL,
PRIMARY KEY (`id`)
) ENGINE = InnoDB;
It's because of the missing Lua tags, it makes : o into a smiley.
Code:function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end function onThink() npcHandler:onThink() end
Under line 65, which is this
Change players toCode:for i = 1, #players do
So line 66 till 71.Code:players[i]
Like this? > for i = 1, #players [1] doThere are [ i] missing after players.
players[i]
It worked! Thank you very much!No, the lines under that line, not that line, so line 66 till 71.
Code:players[i]