Jump to content

طلب تعديل كود ::


Nickelz

Recommended Posts

السسلآآم عليكم

ممكن تشوفون وشش فيه هذآ الكود؟

فيه خطـآآ

createBlip ( 1402.9000244141 , 730.79998779297 , 10 , 63 ) 
nick = createMarker(1402, 730, 10, "cylinder", 2, 0, 255, 0, 160) 
  
function markerHit (hitPlayer, matchingDimension) 
    x, y, z = getElementPosition(source) 
    nick = createVehicle ( 411, 1402.9000244141 , 730.79998779297 , 10 )  
            warpPedIntoVehicle(source, nick) 
end 
addEventHandler ("onMarkerHit", getRootElement(), markerHit) 

اذا وقفت عـ المآركر يطلع لي مليون سيارة وآنـآآ مو رآكب ولآآ مححدة مع آني مركب كود

warpPedIntoVehicle 

وشكرآ

Link to comment
createBlip ( 1402.9000244141 , 730.79998779297 , 10 , 63 ) 
nickM = createMarker(1402, 730, 10, "cylinder", 2, 0, 255, 0, 160) 
  
function markerHit (hitPlayer, matchingDimension) 
    x, y, z = getElementPosition(hitPlayer) 
    nickC = createVehicle ( 411, x , y , z ) 
            warpPedIntoVehicle(hitPlayer, nickC) 
end 
addEventHandler ("onMarkerHit", nickM, markerHit) 

Edited by Guest
Link to comment
createBlip ( 1402.9000244141 , 730.79998779297 , 10 , 63 ) 
nickM = createMarker(1402, 730, 10, "cylinder", 2, 0, 255, 0, 160) 
  
function markerHit (hitPlayer, matchingDimension) 
    x, y, z = getElementPosition(hitPlayer) 
    nickC = createVehicle ( 411, x , y , z ) 
            warpPedIntoVehicle(hitPlayer, nickC) 
end 
addEventHandler ("onMarkerHit", nickM, markerHit) 

مششكؤور يَ خويي القديم ض1

بس الكود يطلع آكثر من سيآآرة

Link to comment
local vehicle = {} 
createBlip ( 1402, 730, 10 , 63 ) 
local marker = createMarker ( 1402, 730, 10, 'cylinder', 2, 0, 255, 0, 160 ) 
         
addEventHandler ( 'onMarkerHit',  marker,  
    function ( hitElement ) 
        if getElementType ( hitElement ) == 'player' and not isPedInVehicle ( hitElement ) then 
            if isElement ( vehicle[hitElement] ) then destroyElement ( vehicle[hitElement] ) end 
            vehicle[hitElement] = createVehicle ( 411, getElementPosition ( hitElement, x, y, z ) ) 
            warpPedIntoVehicle ( hitElement, vehicle[hitElement] ) 
        end 
    end 
) 

ماجربته.

Link to comment
local vehicle = {} 
createBlip ( 1402, 730, 10 , 63 ) 
local marker = createMarker ( 1402, 730, 10, 'cylinder', 2, 0, 255, 0, 160 ) 
         
addEventHandler ( 'onMarkerHit',  marker,  
    function ( hitElement ) 
        if getElementType ( hitElement ) == 'player' and not isPedInVehicle ( hitElement ) then 
            if isElement ( vehicle[hitElement] ) then destroyElement ( vehicle[hitElement] ) end 
            vehicle[hitElement] = createVehicle ( 411, getElementPosition ( hitElement, x, y, z ) ) 
            warpPedIntoVehicle ( hitElement, vehicle[hitElement] ) 
        end 
    end 
) 

ماجربته.

هههههههههههههههه

كودكك خلآآني آروح آتعلم البرمجة من جدييد

آبي وآآحد آسسهل آنـآآ آسآلكم عششآن آتعلم مو طق والحق ض1

Link to comment
local vehicle = {}
createBlip ( 1402, 730, 10 , 63 )
local marker = createMarker ( 1402, 730, 10, 'cylinder', 2, 0, 255, 0, 160 )
       
addEventHandler ( 'onMarkerHit',  marker,
    function ( hitElement )
        if getElementType ( hitElement ) == 'player' and not isPedInVehicle ( hitElement ) then
            if isElement ( vehicle[hitElement] ) then destroyElement ( vehicle[hitElement] ) end
            vehicle[hitElement] = createVehicle ( 411, getElementPosition ( hitElement, x, y, z ) )
            warpPedIntoVehicle ( hitElement, vehicle[hitElement] )
        end
    end
)

ماجربته.

هههههههههههههههه

كودكك خلآآني آروح آتعلم البرمجة من جدييد

آبي وآآحد آسسهل آنـآآ آسآلكم عششآن آتعلم مو طق والحق ض1

لو أنك متعلم برمجة أصلا فهمته :lol:

اضفت فيه

جدول بيانات

^ الجداول وسيلة سهلة لتخزين البيانات

Link to comment
  
createBlip ( 1402.9000244141 , 730.79998779297 , 10 , 63 ) 
nickM = createMarker( 1402, 730, 10, "cylinder", 2, 0, 255, 0, 160 ) 
      
addEventHandler ( "onMarkerHit", nickM,   
    function ( hitPlayer ) 
        if ( isPedInVehicle ( hitPlayer ) == false ) then 
            theData = getElementData ( hitPlayer , "theCar" ) 
            if ( theData ) then 
                destroyElement ( theData ) 
            end 
            x, y, z = getElementPosition ( hitPlayer ) 
            nickC = createVehicle ( 411, x, y, z ) 
            warpPedIntoVehicle ( hitPlayer, nickC ) 
            setElementData ( hitPlayer, "theCar", nickC ) 
       end 
    end 
) 
  

Edited by Guest
Link to comment

Try

-- Server Side --

createBlip ( 1402.9 , 730.79 , 10 , 63 ) 
xxx = createMarker( 1402.9, 730.79, 10, "cylinder", 2, 0, 255, 0, 255 ) 
-- 
Vehz = {} 
-- 
addEventHandler ( "onMarkerHit", xxx, 
function() 
          if Vehz[source] then 
                 if isElement(Vehz[source]) then 
                        destroyElement(Vehz[source]) 
                 end 
          end 
          local x, y, z = getElementPosition(source) 
          Vehz[source] = createVehicle(411, x, y, z)       
          warpPedIntoVehicle(source, Vehz[source]) 
end) 

Link to comment
Try

-- Server Side --

createBlip ( 1402.9 , 730.79 , 10 , 63 ) 
xxx = createMarker( 1402.9, 730.79, 10, "cylinder", 2, 0, 255, 0, 255 ) 
-- 
Vehz = {} 
-- 
addEventHandler ( "onMarkerHit", xxx, 
function() 
          if Vehz[source] then 
                 if isElement(Vehz[source]) then 
                        destroyElement(Vehz[source]) 
                 end 
          end 
          local x, y, z = getElementPosition(source) 
          Vehz[source] = createVehicle(411, x, y, z)       
          warpPedIntoVehicle(source, Vehz[source]) 
end) 

source = ??

warpPedIntoVehicle(source, Vehz[source]) 

هههههههههههههههههههههههه

Link to comment
Try

-- Server Side --

createBlip ( 1402.9 , 730.79 , 10 , 63 ) 
xxx = createMarker( 1402.9, 730.79, 10, "cylinder", 2, 0, 255, 0, 255 ) 
-- 
Vehz = {} 
-- 
addEventHandler ( "onMarkerHit", xxx, 
function() 
          if Vehz[source] then 
                 if isElement(Vehz[source]) then 
                        destroyElement(Vehz[source]) 
                 end 
          end 
          local x, y, z = getElementPosition(source) 
          Vehz[source] = createVehicle(411, x, y, z)       
          warpPedIntoVehicle(source, Vehz[source]) 
end) 

من وين جايب هاذي

]

؟؟؟؟

Link to comment
createBlip ( 1402.9 , 730.79 , 10 , 63 ) 
xxx = createMarker( 1402.9, 730.79, 10, "cylinder", 2, 0, 255, 0, 255 ) 
-- 
Vehz = {} 
-- 
addEventHandler ( "onMarkerHit", xxx, 
function(thePlayer) 
          if Vehz[source] then 
                 if isElement(Vehz[source]) then 
                        destroyElement(Vehz[source]) 
                 end 
          end 
          local x, y, z = getElementPosition(source) 
          Vehz[source] = createVehicle(411, x, y, z)       
          warpPedIntoVehicle(thePlayer, Vehz[source]) 
end) 

Link to comment
Try

-- Server Side --

createBlip ( 1402.9 , 730.79 , 10 , 63 ) 
xxx = createMarker( 1402.9, 730.79, 10, "cylinder", 2, 0, 255, 0, 255 ) 
-- 
Vehz = {} 
-- 
addEventHandler ( "onMarkerHit", xxx, 
function() 
          if Vehz[source] then 
                 if isElement(Vehz[source]) then 
                        destroyElement(Vehz[source]) 
                 end 
          end 
          local x, y, z = getElementPosition(source) 
          Vehz[source] = createVehicle(411, x, y, z)       
          warpPedIntoVehicle(source, Vehz[source]) 
end) 

source = ??

warpPedIntoVehicle(source, Vehz[source]) 

هههههههههههههههههههههههه

دوم الضحكه الله يخليك لأهلـك

Link to comment
createBlip ( 1402.9 , 730.79 , 10 , 63 ) 
xxx = createMarker( 1402.9, 730.79, 10, "cylinder", 2, 0, 255, 0, 255 ) 
-- 
Vehz = {} 
-- 
addEventHandler ( "onMarkerHit", xxx, 
function(thePlayer) 
          if Vehz[source] then 
                 if isElement(Vehz[source]) then 
                        destroyElement(Vehz[source]) 
                 end 
          end 
          local x, y, z = getElementPosition(source) 
          Vehz[source] = createVehicle(411, x, y, z)       
          warpPedIntoVehicle(thePlayer, Vehz[source]) 
end) 

source :?

Link to comment
الكود شغال ياحبيبي ولو تقول خطأ روح جربه

ههههههههههههههع شغال أقول مدري من يبى له يجرب المود :lol:

رح شف كيف تجي السيارات في الماركر وبعد يوم يركبك شف الاخطاء في

/debugscript 3

لاتحط علآمت احبآط صلحه

:mrgreen:

حنا جايين نسااعد صاحب الموضوع ولا نصحح اكوادك :?:

اخيرا لاتنسى تمر على الويكي

https://wiki.multitheftauto.com/wiki/Main_Page

:roll:

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...