milbradt
New Member
- Joined
- Dec 25, 2011
- Messages
- 177
- Solutions
- 1
- Reaction score
- 4
SOLVED
It is not working.
Does anyone know a solution?
error:
script:
Code:
function getPlayersInArea(fromPos, toPos)local players ={}
for _, pid in ipairs(getPlayersOnline())do
if isInRange(getPlayerPosition(pid), fromPos, toPos)then
table.insert(players, pid)
end
end
return players
end
It is not working.
Does anyone know a solution?
error:
Code:
data/talkactions/scripts/teste.lua:41: attempt to concatenate local 'players' (a table value)
Code:
local players = {}
for _, pid in pairs(getPlayersOnline()) do
if isInRange(getPlayerPosition(pid), {x=1028,y=961,z=7}, {x=1033,y=965,z=7}) then
table.insert(players, pid)
end
end
doCreatureSay(cid,""..players.."",19)
Last edited: