-#Saimon Posted August 4, 2014 Share Posted August 4, 2014 السلام عليكم ورحمة الله وبركاته عندي مشكله بالترآيقر ابي اذا الاعب ضغط زر تظهر ساعاته بالششات وطبعاَ عشان تطلع لكل الاعبين لازم نسوي ترايقر من الكلينت للسيرفر انا سويت كذا بس مآيطلع شي بالشات --- 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
The Don Posted August 5, 2014 Share Posted August 5, 2014 اذا مافيه اخطاء في الدي بوق سوي زي كذا -- 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
-#Saimon Posted August 5, 2014 Author Share Posted August 5, 2014 اذا مافيه اخطاء في الدي بوق سوي زي كذا -- 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
shwaeki Posted August 5, 2014 Share Posted August 5, 2014 جرب addEvent("ShowPTime",true) addEventHandler("ShowPTime",root, function() local PTime = getElementData(source,"Time") outputChatBox("[" .. getPlayerName(source) .. "] Time [" .. PTime .. "] ",source,255,255,0,true) end ) Link to comment
-#Saimon Posted August 5, 2014 Author Share Posted August 5, 2014 جرب 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
shwaeki Posted August 5, 2014 Share Posted August 5, 2014 صحيح استبدله بلترايقر انتا كنت ترسل الزر triggerServerEvent("ShowPTime",getLocalPlayer()) Link to comment
-#Saimon Posted August 5, 2014 Author Share Posted August 5, 2014 صحيحاستبدله بلترايقر انتا كنت ترسل الزر triggerServerEvent("ShowPTime",getLocalPlayer()) نفس المشكله Link to comment
shwaeki Posted August 5, 2014 Share Posted August 5, 2014 (edited) شو يقول الدي بق اطرح اكوادك Edited August 5, 2014 by Guest Link to comment
nxFairlywell Posted August 5, 2014 Share Posted August 5, 2014 اطرح حدث عند الضغط على الزر ؟ + الفنكشنات الي فوق اضنه حاط elseif بدون if Link to comment
The Don Posted August 5, 2014 Share Posted August 5, 2014 جرب كذا باذن الله تشتغل معك -- 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
nxFairlywell Posted August 5, 2014 Share Posted August 5, 2014 تأكد أنو في سكربت الوقت ' Time ' و ليس ' PlayTime ' لأن اغلب سكربتات الوقت تجي PlayTime Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now