Jump to content

خطا ولكن كل شي صحيح ؟؟


Sfa7

Recommended Posts

السلام عليكم

addEventHandler ( "onClientMarkerHit",mark, 
function (thePlayer) 
    if getElementType ( thePlayer ) == "player" and isPedInVehicle ( thePlayer ) and getPlayerTeam ( thePlayer ) and getPlayerTeam ( thePlayer ) == getTeamFromName ( "myteam" ) then 
        destroyElement(mark) 
        mark= nil 
        destroyElement(blb) 
        blb = nil 
        triggerServerEvent("givem", localPlayer) 
    end 
end 
) 

ماني شايف خطا ولكن لما المس الماركر بـ السياره مايحصل اي شي

و الدي بق

يقول الخطا في

addEventHandler ( "onClientMarkerHit",mark, 

وش الحل ي بروات ؟

انا ابيه يكون كلنت مو سيرفر للمعلومه :roll:

Link to comment
addEventHandler ( "onClientMarkerHit", resourceRoot, 
    function ( thePlayer ) 
        if source == mark then 
            if thePlayer == localPlayer then 
                if isPedInVehicle ( thePlayer ) then 
                    local playerTeam = getPlayerTeam ( thePlayer )  
                    if playerTeam then 
                        if playerTeam == getTeamFromName ( "myteam" ) then 
                            if blb then 
                                if isElement ( blb ) then 
                                    destroyElement ( blb ) 
                                end 
                            end 
                            destroyElement ( mark ) 
                            triggerServerEvent ( "givem", localPlayer ) 
                        end 
                    end 
                end 
            end 
        end 
    end 
) 

Link to comment

كفوو والله ي عناد والله انك ذيب ابن ذيب

يالغالي ممكن تشرحلي وش الاخطاء الي كانت في كودي

وانا شايف انك مسوي

if

كثييره وانا حبيت اختصرها ولكن حصلتك مزوده ضض2

وش الفرق وهل لها فائده ؟

ي ليت تعطيني شرح كامل وبـالتفصيل

الله لايهينك ي الشنب

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