[2012-11-08 21:03:13] WARNING: 36\replace.lua:10: Bad argument @ 'createObject' [Expected number at argument 2, got nil]
[2012-11-08 21:03:13] ERROR: exports: Call to non-running server resource (bone_attach) [string "?"]
ما صار
ما صار
انا ابغيه ان اذا
كتب
obj
مرة يصير عنده الي ويتحرك معاه
واذا كتبها مرة ثانية يحطها على الارض ما تختفي
واذا حطاها تختفي عقب مدة من الوقت
اسف لكثرة طلباتي
addCommandHandler("obj",
function(source)
local x, y, z = getElementPosition(source)
local object = createObject(1327, x, y, z)
exports.bone_attach:attachElementToBone(object, source, 8, 0, 0, 0, 0, 0, 0)
end)
function handobject ( source, commandName )
local x, y, z = getElementPosition ( source )
local object = createObject ( 7910, x, y, z -5 )
attachElements ( object, source, 0, 0, 5 )
end
addCommandHandler ( "obj", handobject )
اي رقم ابدل؟
function handobject ( source, commandName )
local x, y, z = getElementPosition ( source )
local object = createobject ( 7910, x, y, z -5 )
attachElements ( object, source, 0, 0, 5 )
end
addCommandHandler ( "obj", handobject )