Hey there, im making a talkaction that shows a Text Dialog ONLY if the player is on some specific positions, but i get this error on the server log: (LuaInterface::luaGetThingPosition) Thing not found
I dont know whats wrong.. the "thing" is the player.. heres the code
I dont know whats wrong.. the "thing" is the player.. heres the code
PHP:
local positions = {
{x = 533, y = 511, z = 7},
{x = 607, y = 512, z = 7},
{x = 488, y = 470, z = 7},
{x = 558, y = 470, z = 7}
}
local ActualPos = getCreaturePosition(cid)
function onSay(cid, words, param, channel)
if ActualPos == positions then
doShowTextDialog... bla bla bla lots of letters in here
end
end