local houses = {}
local nextHouse = 0
function createHouse ( player, commandName, name )
local x, y, z = getElementPosition ( player )
z = z - 1
local hMarker = createMarker ( x, y, z, "cylinder", 1.0 )
if not name then
name = "House #" .. nextHouse
end
if hMarker then
houses[nextHouse] = {}
houses[nextHouse].marker = hMarker
houses[nextHouse].name = name
outputChatBox ( "House has been created!", player )
nextHouse = nextHouse + 1
else
outputChatBox ( "House can't be created!", player )
end
end
addCommandHandler ( "chouse", createHouse, false )
...
-- And the previously written code
SOLVED: Marker was too small.. -.-"