Hallo,
Ich habe bei diesem Script:
function test()
local pos = getElementPosition(source)
local ort = getZoneName(pos.x, pos.y, pos.z, false)
outputChatBox("Du bist zurzeit in"..ort)
end
addCommandHandler("zone", test)
Diesen Fehler:
[2014-10-20 17:04:17] WARNING: Scripten\First.lua:2: Bad argument @ 'getElementPosition' [Expected element at argument 1, got nil][2014-10-20 17:04:17] ERROR: Scripten\First.lua:3: attempt to index local 'pos' (a boolean value)