Prince Mego
New Member
- Joined
- Feb 11, 2016
- Messages
- 20
- Reaction score
- 1
I have a problem in my script and i need help
this is my error
and this is my line function
please help and sorry for my english
this is my error
and this is my line function
Code:
function teleporttoarea()
local players = {}
for x = frome.x, toe.x do
for y = frome.y, toe.y do
for z = frome.z, toe.z do
local pos = {x = x, y = y, z = z, stackpos = 253}
local v = getThingfromPos(pos).uid
if isPlayer(v) then
table.insert(players,v)
if #players >= min then
doTeleportThing(v,teleportto)
doBroadcastMessage("The guild War Event Started With "..tonumber(#players).." Players", MESSAGE_EVENT_ADVANCE)
else
doBroadcastMessage("The guild War Event Didn't Start Because Of Low Players", MESSAGE_EVENT_ADVANCE)
end
end
end
end
end
return true
end
Last edited by a moderator: