Jump to content

marker


Recommended Posts

وين الخطأ بـ سطر 2 ؟

local marker = createMarker(-722.75562,972.28546,12.25666,'cheakpoint',5, 255, 255, 0, 170)  
addEventHandler('onMarkerHit', marker,  
function(player) 
    if ( getElementType ( player ) == ( 'player' ) ) then 
    givePlayerMoney(player,500) 
end 
end 
) 

ولآ ههنآ

    local marker = createMarker(-722.75562,972.28546,12.25666,'cheakpoint',5, 255, 255, 0, 170) 
function (player) 
        if ( getElementType ( player ) == ( 'player' ) ) then 
        givePlayerMoney(player,500) 
    end 
    end 
   addEventHandler("onMarkerHit", marker,) 

Edited by Guest
Link to comment

-- Server Side !

local marker = createMarker ( -722.75562, 972.28546, 12.25666, 'checkpoint', 5, 255, 255, 0, 170 ) 
addEventHandler ( 'onMarkerHit', marker, 
    function ( player ) 
        if ( getElementType ( player ) == 'player' ) then 
            givePlayerMoney ( player, 500 ) 
        end 
    end, false 
) 
  

Edited by Guest
Link to comment
ففآهمم بعضض الأششيآء بسس ممآ آففكر آففتح الويكي مرةة !

إلآ بعض الأححيآن ،

فـ لو ففتححتهة مآ آفهمم شي ! :lol:

بالعكس لو فتحته تفهم اكثر,

المشكلة إلي يروح للمثال على طول ويقول ما فهمت,

اول شيء اقرأ السين تاكس والارقومنت,

^ آهم شيء , ما يهم المثآل,

بالتوفيق,

Link to comment
  • 9 months later...
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...