desej
Hell Yea... He he
Great Skript.. Work perfect ^^ Rep+
[19/03/2013 16:09:29] OTSYS_SQLITE3_PREPARE(): SQLITE ERROR: no such table: marriage_system (SELECT "player_id" FROM "marriage_system" WHERE "player_id" = '371'
[19/03/2013 16:09:29] OTSYS_SQLITE3_PREPARE(): SQLITE ERROR: no such table: marriage_system (SELECT "partner" FROM "marriage_system" WHERE "partner" = '371'
[19/03/2013 16:09:37] OTSYS_SQLITE3_PREPARE(): SQLITE ERROR: no such table: marriage_system (SELECT "player_id" FROM "marriage_system" WHERE "player_id" = '369'
[19/03/2013 16:09:37] OTSYS_SQLITE3_PREPARE(): SQLITE ERROR: no such table: marriage_system (SELECT "partner" FROM "marriage_system" WHERE "partner" = '369'
[19/03/2013 16:10:03] OTSYS_SQLITE3_PREPARE(): SQLITE ERROR: no such table: marriage_system (SELECT "player_id" FROM "marriage_system" WHERE "player_id" = '369'
[19/03/2013 16:10:03] OTSYS_SQLITE3_PREPARE(): SQLITE ERROR: no such table: marriage_system (SELECT "partner" FROM "marriage_system" WHERE "partner" = '369'
[19/03/2013 16:10:10] OTSYS_SQLITE3_PREPARE(): SQLITE ERROR: no such table: marriage_system (SELECT "player_id" FROM "marriage_system" WHERE "player_id" = '371'
[19/03/2013 16:10:10] OTSYS_SQLITE3_PREPARE(): SQLITE ERROR: no such table: marriage_system (SELECT "partner" FROM "marriage_system" WHERE "partner" = '371'
[19/03/2013 16:10:39] OTSYS_SQLITE3_PREPARE(): SQLITE ERROR: no such table: marriage_system (SELECT "player_id" FROM "marriage_system" WHERE "player_id" = '369'
[19/03/2013 16:10:39] OTSYS_SQLITE3_PREPARE(): SQLITE ERROR: no such table: marriage_system (SELECT "partner" FROM "marriage_system" WHERE "partner" = '369'
[19/03/2013 16:10:55] OTSYS_SQLITE3_PREPARE(): SQLITE ERROR: no such table: marriage_system (SELECT "player_id" FROM "marriage_system" WHERE "player_id" = '369'
[19/03/2013 16:10:55] OTSYS_SQLITE3_PREPARE(): SQLITE ERROR: no such table: marriage_system (SELECT "partner" FROM "marriage_system" WHERE "partner" = '369'
CREATE TABLE marriage_system (
id INTEGER NOT NULL,
player_id INTEGER NOT NULL,
partner VARCHAR( 255 ) NOT NULL,
marriage_date INTEGER NOT NULL,
PRIMARY KEY ( id )
);
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
Thanks, fixed my problem x'DIt'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
[20:25:05.835] [Error - NpcScript Interface]
[20:25:05.836] data/npc/scripts/Lynda.lua:onCreatureSay
[20:25:05.838] Description:
[20:25:05.839] (LuaInterface::luaDoCreatureSay) Creature not found
[20:25:05.842] [Error - NpcScript Interface]
[20:25:05.844] data/npc/scripts/Lynda.lua:onCreatureSay
[20:25:05.846] Description:
[20:25:05.847] (LuaInterface::luaGetPlayerNameByGUID) Player not found
[20:25:05.850] [Error - NpcScript Interface]
[20:25:05.851] data/npc/scripts/Lynda.lua:onCreatureSay
[20:25:05.853] Description:
[20:25:05.854] (LuaInterface::luaGetThingPosition) Thing not found
Change db.executeQuery to db.query or add this in compat.lua/global.lua.I get this error when I try to "proceed" with the wedding,
[Error -Npc interface]
data/npc/marriagesystem.luanCreatureSay
Description:
[string "marry_config = {..."]:53: attempt to call field 'executeQuery' <a nil value
stack traceback:
[string "marry_config = {..."]:53 in function 'doMarry'
data/npc/scripts/marriagesystem.lua;64; in function 'callback'
data/npc/lib/npcsystem/npchandler.lua;383; in function 'onCreatureSay'
data/npc/scripts/marriagesystem.lua:8: in function <data/npc/scripts/marriagesystem.lua:8>
db.executeQuery = db.query
UnderCode:[20:25:05.835] [Error - NpcScript Interface] [20:25:05.836] data/npc/scripts/Lynda.lua:onCreatureSay [20:25:05.838] Description: [20:25:05.839] (LuaInterface::luaDoCreatureSay) Creature not found [20:25:05.842] [Error - NpcScript Interface] [20:25:05.844] data/npc/scripts/Lynda.lua:onCreatureSay [20:25:05.846] Description: [20:25:05.847] (LuaInterface::luaGetPlayerNameByGUID) Player not found [20:25:05.850] [Error - NpcScript Interface] [20:25:05.851] data/npc/scripts/Lynda.lua:onCreatureSay [20:25:05.853] Description: [20:25:05.854] (LuaInterface::luaGetThingPosition) Thing not found
What's wrong?
for i = 1, #players do
[i]
players[i]
function addCptl(first, rest)
return first:upper()..rest:lower()
end
msg:gsub("(%a)([%w_']*)", addCptl)
"..msg:gsub("(%a)([%w_']*)", addCptl).."
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