Jump to content

تصحيح الكود


Recommended Posts

Posted

السلام عليكم

خطأ ماتوقع صعب

local p = createPickup ( 370.0751953125, 173.60697937012, 1008.3828125, 3, 1550, 30000, 5000 )   
m = createMarker ( 370.0751953125, 173.60697937012, 1008.3828125, "cylinder", 1.5, 0, 0, 0, 0) 
    addEventHandler ( "onMarkerHit", m, 
    function ( hitElement,thePlayer ) 
    if (hitElement and getElementType(hitElement) == "player") then  
    attachElements ( thePlayer, p, 0, 0, 5 ) 
    end 
end) 

ويش الخطأ اريد اربط الشنطه في خلف الاعب في ضهره يعني

Posted

thePlayer = ?

╔═╦╦╦╗╔╦═╦═╦═╦═╦╦╦╦╦╦╦═╦╦╦╦╗

║║║║║╠╝║║╚╣║║║║║║║║║║║║║║║║║

║║║║║╚╦╦═╦╦╦╦╣║║║║║║║║║║║║║║

║║║║╠═╣╠╝╔══╝║║║║║╟╢║║║║║╟╢║

╚╩══╩══╩═╩═══╩╩══╩╩═╩╩╩═╩╩═╝

«سبحانك اللهم وبحمدك أشهد أن لا إله إلا أنت أستغفرك وأتوب إليك»

M7mdAl7arthy : لتواصل سكايب

Posted (edited)

ادري انك تبي تقلد حرب العصابات ...

بس كودك كلللله ما له معنى اطلاقاً !!

يمديك تستخدم

local m=createMarker(370.0751953125, 173.60697937012, 1008.3828125, "cylinder", 1.5, 0, 0, 0, 0) 
local blip=createBlipAttachedTo(m, 3) 
  
addEventHandler("onMarkerHit",m, 
function(hitElement) 
    if(hitElement and getElementType(hitElement)=="player")then 
        if(blip~=false)then 
            attachElements(blip,hitElement) 
        end 
    end 
end) 

انا ما جربته , بس ان شاء الله يشتغل ..

Edited by Guest

F4MZM4.gif

Posted
ادري انك تبي تقلد حرب العصابات ...

بس كودك كلللله ما له معنى اطلاقاً !!

يمديك تستخدم

local m=createMarker(370.0751953125, 173.60697937012, 1008.3828125, "cylinder", 1.5, 0, 0, 0, 0) 
local blip=createBlipAttachedTo(m, 3) 
  
addEventHandler("onMarkerHit",m, 
function() 
    if(hitElement and getElementType(hitElement)=="player")then 
        if(blip~=false)then 
            attachElements(blip,hitElement) 
        end 
    end 
end) 

انا ما جربته , بس ان شاء الله يشتغل ..

نسيت تحط hitElement في متطلبات الفنكشن

Posted
ادري انك تبي تقلد حرب العصابات ...

بس كودك كلللله ما له معنى اطلاقاً !!

يمديك تستخدم

local m=createMarker(370.0751953125, 173.60697937012, 1008.3828125, "cylinder", 1.5, 0, 0, 0, 0) 
local blip=createBlipAttachedTo(m, 3) 
  
addEventHandler("onMarkerHit",m, 
function() 
    if(hitElement and getElementType(hitElement)=="player")then 
        if(blip~=false)then 
            attachElements(blip,hitElement) 
        end 
    end 
end) 

انا ما جربته , بس ان شاء الله يشتغل ..

نسيت تحط hitElement في متطلبات الفنكشن

تم التعديل

F4MZM4.gif

Posted
ادري انك تبي تقلد حرب العصابات ...

بس كودك كلللله ما له معنى اطلاقاً !!

يمديك تستخدم

local m=createMarker(370.0751953125, 173.60697937012, 1008.3828125, "cylinder", 1.5, 0, 0, 0, 0) 
local blip=createBlipAttachedTo(m, 3) 
  
addEventHandler("onMarkerHit",m, 
function(hitElement) 
    if(hitElement and getElementType(hitElement)=="player")then 
        if(blip~=false)then 
            attachElements(blip,hitElement) 
        end 
    end 
end) 

انا ما جربته , بس ان شاء الله يشتغل ..

وش دخل blip

هو يبي شنطة في ظهر الأعب ..

:roll:

╔═╦╦╦╗╔╦═╦═╦═╦═╦╦╦╦╦╦╦═╦╦╦╦╗

║║║║║╠╝║║╚╣║║║║║║║║║║║║║║║║║

║║║║║╚╦╦═╦╦╦╦╣║║║║║║║║║║║║║║

║║║║╠═╣╠╝╔══╝║║║║║╟╢║║║║║╟╢║

╚╩══╩══╩═╩═══╩╩══╩╩═╩╩╩═╩╩═╝

«سبحانك اللهم وبحمدك أشهد أن لا إله إلا أنت أستغفرك وأتوب إليك»

M7mdAl7arthy : لتواصل سكايب

Posted
ادري انك تبي تقلد حرب العصابات ...

بس كودك كلللله ما له معنى اطلاقاً !!

يمديك تستخدم

local m=createMarker(370.0751953125, 173.60697937012, 1008.3828125, "cylinder", 1.5, 0, 0, 0, 0) 
local blip=createBlipAttachedTo(m, 3) 
  
addEventHandler("onMarkerHit",m, 
function(hitElement) 
    if(hitElement and getElementType(hitElement)=="player")then 
        if(blip~=false)then 
            attachElements(blip,hitElement) 
        end 
    end 
end) 

انا ما جربته , بس ان شاء الله يشتغل ..

وش دخل blip

هو يبي شنطة في ظهر الأعب ..

:roll:

مدري عنه

ض1

F4MZM4.gif

Posted

@Bahrain_ مدري وش تقصد

بس جرب ذاه

addEventHandler ( 
    'onResourceStart', resourceRoot, 
    function ( ) 
        local object = createObject ( 1550, 370, 173, 1008 ) 
        local marker = createMarker ( 370, 173, 1008, 'cylinder', 1.5, 0, 0, 0, 0 ) 
        addEventHandler ( 'onMarkerHit', marker,  
        function ( hitElement ) 
            if ( getElementType ( hitElement ) == 'player' ) then 
                attachElements ( object, hitElement, 0, 0, 0 ) 
            end 
        end ) 
    end 
) 

╔═╦╦╦╗╔╦═╦═╦═╦═╦╦╦╦╦╦╦═╦╦╦╦╗

║║║║║╠╝║║╚╣║║║║║║║║║║║║║║║║║

║║║║║╚╦╦═╦╦╦╦╣║║║║║║║║║║║║║║

║║║║╠═╣╠╝╔══╝║║║║║╟╢║║║║║╟╢║

╚╩══╩══╩═╩═══╩╩══╩╩═╩╩╩═╩╩═╝

«سبحانك اللهم وبحمدك أشهد أن لا إله إلا أنت أستغفرك وأتوب إليك»

M7mdAl7arthy : لتواصل سكايب

Posted

ماتقصر لاكن ذي مو بضهر الاعب هاذي فيه لو غيرت ألأحدثيات وخليتها بضهره لما انزل بحرف ؤ تضل فوق + الكامرا تكون قدآم ماتكون طبيعيه

لو في وآحد خبره أكثر ياريت يسآعد ومشكورين على الرد ماقصرتو

Posted
ماتقصر لاكن ذي مو بضهر الاعب هاذي فيه لو غيرت ألأحدثيات وخليتها بضهره لما انزل بحرف ؤ تضل فوق + الكامرا تكون قدآم ماتكون طبيعيه

لو في وآحد خبره أكثر ياريت يسآعد ومشكورين على الرد ماقصرتو

لازم تستخدم ذا المود

https://community.multitheftauto.com/index.php?p=resources&s=details&id=2540

CiTLh.png

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