Jump to content

مشكله بسيطه بالترايقر


Recommended Posts

السلام عليكم ورحمة الله وبركاته

عندي مشكله بالترآيقر

ابي اذا الاعب ضغط زر تظهر ساعاته بالششات

وطبعاَ عشان تطلع لكل الاعبين لازم نسوي ترايقر من الكلينت للسيرفر

انا سويت كذا بس مآيطلع شي بالشات

  
--- Client Side 
 elseif source == ShowTime then 
guiSetVisible(black,false) 
 showCursor (false ) 
 guiSetInputEnabled(false) 
triggerServerEvent("ShowPTime",getLocalPlayer(),ShowTime) 

  
-- Server Side 
  
     addEvent("ShowPTime",true) 
  addEventHandler("ShowPTime",root,  
   function(player,time) 
    PTime = getElementData(source,"Time") 
outputChatBox("[" .. getPlayerName(source) .. "] Time [" .. PTime .. "] ",255,255,0,true) 
end 
    )  

Link to comment

اذا مافيه اخطاء في الدي بوق سوي زي كذا

-- Server Side 
  
     addEvent("ShowPTime",true) 
  addEventHandler("ShowPTime",root, 
   function(player,time) 
    PTime = getElementData(source,"Time") 
outputChatBox("[" .. getPlayerName(source) .. "] Time [" .. PTime .. "] ",root,255,255,0,true) 
end 
    ) 

Link to comment
اذا مافيه اخطاء في الدي بوق سوي زي كذا
-- Server Side 
  
     addEvent("ShowPTime",true) 
  addEventHandler("ShowPTime",root, 
   function(player,time) 
    PTime = getElementData(source,"Time") 
outputChatBox("[" .. getPlayerName(source) .. "] Time [" .. PTime .. "] ",root,255,255,0,true) 
end 
    ) 

مآيطلع شي , مع اني لو خليت مخرج الشات للاعب يظبط

Link to comment
جرب
addEvent("ShowPTime",true) 
addEventHandler("ShowPTime",root, 
function() 
   local PTime = getElementData(source,"Time") 
    outputChatBox("[" .. getPlayerName(source) .. "] Time [" .. PTime .. "] ",source,255,255,0,true) 
end 
) 

نفس المشكله ,

اللي باخر الترايقر لان هو الزر حق اظهار الساعات ShowTime يمكن المشكله من

Link to comment

جرب كذا باذن الله تشتغل معك

-- Client Side 
addEventHandler("onClientGUIClick",root, 
    function () 
        if source == ShowTime then 
            triggerServerEvent("ShowPTime",getLocalPlayer()) 
            guiSetVisible(black,false) 
            showCursor (false ) 
            guiSetInputEnabled(false) 
    end 
end ) 

-- Server Side 
addEvent("ShowPTime",true) 
addEventHandler("ShowPTime",root, 
    function () 
        local PTime = getElementData(source,"Time") 
        outputChatBox("[" .. getPlayerName(source) .. "] Time [" .. PTime .. "] ",root,255,255,0,true) 
    end 
) 
  

وتاكد من الالمنت داتا

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