Well, Luasql-mysql works fine in npcs, such as the banker. But when using it in talk actions (such as deathlist) it bugs, it gets a error saying:
And line 11 is:
But the banker npc uses basically the same line and it does not get the error
Can anybody help me?
Code:
[04/04/2008 17:32:35] data/talkactions/scripts/deathlist.lua:11: LuaSQL: Error executing query. MySQL: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Brandon Test''' at line 1
And line 11 is:
Code:
local cur = assert(con:execute("SELECT `name`, `id` FROM `players` WHERE `name` = '" .. escapeString(param) .. "';"))
But the banker npc uses basically the same line and it does not get the error
Can anybody help me?