#Plair07 Posted June 19, 2015 Share Posted June 19, 2015 السلام عليكم ورحمة الله وبركاته بغيت اجرب اللوب بطريقه سهله وسويت الفنكشن ذا , الله لايهينكم عدلو لي الاخطاء ووضحو اللي صاير marker = createMarker ( 1807.15369, 880.89752, 10.08928, "cylinder", 4.0, 0, 0, 255, 255 ) function ahmad() if ( source == marker ) then for k,v in ipairs do destroyElement(v) end end end addEventHandler ( "onClientMarkerHit", getRootElement(), ahmad ) احسبه خبيصه Link to comment
The Killer Posted June 19, 2015 Share Posted June 19, 2015 فيه اخطاء ليش مسوي لوب ومو محدد الهدف منه ؟ ايش تبي تسوي بالضبط انت ؟ Link to comment
i S6O Posted June 19, 2015 Share Posted June 19, 2015 هذا لوب ماركات ListMarkers = { { x,y,z } -- { x,y,z } } for i, type in ipairs ( ListMarkers ) do local Markers = createMarker ( type[1],type[2],type[3],'cylinder',4, 255,0,0 , 170 ) addEventHandler ( 'onClientMarkerHit', Markers, Hit ) addEventHandler ( 'onClientMarkerLeave', Markers,Leave ) end function Hit ( ) -- you code end function Leave ( ) -- you code end Link to comment
#Plair07 Posted June 19, 2015 Author Share Posted June 19, 2015 فيه اخطاءليش مسوي لوب ومو محدد الهدف منه ؟ ايش تبي تسوي بالضبط انت ؟ لي فتره م سويت ولا فنكشن بس اقرا فالمنتدى , وقلت خلني اجرب اللوب دامني توي جديد عليه وكذا وبس لا اكثر ولا اقل .. Link to comment
#Plair07 Posted June 19, 2015 Author Share Posted June 19, 2015 هذا لوب ماركات ListMarkers = { { x,y,z } -- { x,y,z } } for i, type in ipairs ( ListMarkers ) do local Markers = createMarker ( type[1],type[2],type[3],'cylinder',4, 255,0,0 , 170 ) addEventHandler ( 'onClientMarkerHit', Markers, Hit ) addEventHandler ( 'onClientMarkerLeave', Markers,Leave ) end function Hit ( ) -- you code end function Leave ( ) -- you code end آسف تعبتك معي لأن انحلت المشكله وجيت بحذف الموضوع م لقيته يغلق ! Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now