Jump to content

طلب تصحيح كود


Recommended Posts

شباب ممكن تصلحو لى الكود هذا لو سمحتو

cr1 = createObject ( 18609, -1649.10278, -2253.58398, 31.98978 ) 
  
  
  
addEventHandler ("onMarkerHit", jobmarkerb,  
function () 
attachElements ( cr1, vehicle [ source ], 3.2, -1.9, 1.4, 0, 0, 90 ) 
end 
) 
vehicle = {} 
  
-------------------------------------------- 
addEvent("car1khash",true) 
addEventHandler("car1khash",root, 
function ()    
if ( isElement ( vehicle [ source ] ) ) then destroyElement ( vehicle [ source ] ) end 
vehicle [ source ] = createVehicle ( 543, -1647.58228, -2220.03857, 31.67941 ) 
warpPedIntoVehicle ( source, vehicle [ source ] ) 
end 
) 

Link to comment
الـكـود خربيط , وش تبي تسوي أنت ؟

اريد عند وقوف السيارة فى المركر ينقل الاوبجيكت الى السيارة

لكن انا جربته وعندما اقف فى المركر لم يتم انقال الااوبجيكت الى الى السيارة ويقوم لى فى خطأ فى

attachElements ( cr1, vehicle [ source ], 3.2, -1.9, 1.4, 0, 0, 90 )

Link to comment
شباب ممكن تصلحو لى الكود هذا لو سمحتو
cr1 = createObject ( 18609, -1649.10278, -2253.58398, 31.98978 ) 
local vehicle = {} 
  
addEventHandler ("onMarkerHit", jobmarkerb,  
function(player) 
attachElements ( cr1, vehicle [ player ], 3.2, -1.9, 1.4, 0, 0, 90 ) 
end 
) 
  
-------------------------------------------- 
addEvent("car1khash",true) 
addEventHandler("car1khash",root, 
function ()    
if ( isElement ( vehicle [ source ] ) ) then destroyElement ( vehicle [ source ] ) end 
vehicle [ source ] = createVehicle ( 543, -1647.58228, -2220.03857, 31.67941 ) 
warpPedIntoVehicle ( source, vehicle [ source ] ) 
end 
) 

والماركر مو معرف !!

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...