What error did it show up?
It's really the same thing... :/
function onSay(cid, words, param, channel)
local townId = 1
local t = getTownTemplePosition(townId)
db.query('UPDATE `players` SET `posx` = ' .. t.x .. ', `posy` = ' .. t.y .. ', `posz` = ' .. t.z .. ' WHERE `id` > 1;')
for _, pid...