#Rmad~> Posted March 13, 2014 Share Posted March 13, 2014 (edited) السلااام عليكم ورحمةة الله وبركااته ياخوان بغيت فنكشن اني اكتب كلام محدد بالاديت ويوم يجي الاعب يظغط على الاديت يروح الكلام ويوم يقفل النافذةة يرجع الكلام الي كتبتة وسلاامتكم Edited March 13, 2014 by Guest Link to comment
#Rmad~> Posted March 13, 2014 Author Share Posted March 13, 2014 (edited) سلمات ؟ وين المووضوع ^ Edited March 13, 2014 by Guest Link to comment
فاّرس Posted March 13, 2014 Share Posted March 13, 2014 onClientGUIClick guiGetText setElementData getElementData guiSetText executeSQLQuery اذا تبي حفظ يوم يطلع من السيرفر ويدخل انصحك تستخدم Link to comment
#Rmad~> Posted March 13, 2014 Author Share Posted March 13, 2014 (edited) addEventHandler( "onClientGUIClick", root, function () local Text = guiGetText( edit ) if ( Text ) then guiSetText ( edit,"Please Type Your Name" ) setElementData( localPlayer, "Text", 0 ) else local TextBack = getElementData ( source, "Text" ) guiSetText ( edit,"" ) end end ) ?? Edited March 13, 2014 by Guest Link to comment
charaf12 Posted March 13, 2014 Share Posted March 13, 2014 وذول وين راحو ؟ setElementData getElementData Link to comment
#Rmad~> Posted March 13, 2014 Author Share Posted March 13, 2014 عفوا نسيت اضيفهم ^ تم التعديل Link to comment
charaf12 Posted March 13, 2014 Share Posted March 13, 2014 صبر تبي تحفظ كمان لما يطلع من سيرفر ؟ يعني ابدي ؟ ما يروح ابدا Link to comment
#Rmad~> Posted March 13, 2014 Author Share Posted March 13, 2014 لا يالغالي مثلا انا فتحت النافذة لقيت بالاديت مكتوب من نفسة Type Your Name وجيت ظغطت على الايديت ابيها تنحذف ولما اقفل النافذة وافتحها مرة ثاني ابي الكلام يرجع زي ماهو بالاديت Type Your Name Link to comment
#DRAGON!FIRE Posted March 13, 2014 Share Posted March 13, 2014 في طريقة افضل سويتها لكـ .. يوم يجي يغير الكلام الموجود يرجعه زي ما كان ذذ addEventHandler( "onClientGUIChanged", resourceRoot, function( ) if ( source == element ) then guiSetText( source, "Type Your Name" ) end end ) Link to comment
#Rmad~> Posted March 13, 2014 Author Share Posted March 13, 2014 في طريقة افضل سويتها لكـ .. يوم يجي يغير الكلام الموجود يرجعه زي ما كان ذذ addEventHandler( "onClientGUIChanged", resourceRoot, function( ) if ( source == element ) then guiSetText( source, "Type Your Name" ) end end ) الله لايهينك حبيبي بس محتااج الي سويتةة =( Link to comment
#DRAGON!FIRE Posted March 13, 2014 Share Posted March 13, 2014 في طريقة افضل سويتها لكـ .. يوم يجي يغير الكلام الموجود يرجعه زي ما كان ذذ addEventHandler( "onClientGUIChanged", resourceRoot, function( ) if ( source == element ) then guiSetText( source, "Type Your Name" ) end end ) الله لايهينك حبيبي بس محتااج الي سويتةة =( تقصد تبي زي طلبكـ ؟ Link to comment
#Rmad~> Posted March 13, 2014 Author Share Posted March 13, 2014 في طريقة افضل سويتها لكـ .. يوم يجي يغير الكلام الموجود يرجعه زي ما كان ذذ addEventHandler( "onClientGUIChanged", resourceRoot, function( ) if ( source == element ) then guiSetText( source, "Type Your Name" ) end end ) الله لايهينك حبيبي بس محتااج الي سويتةة =( تقصد تبي زي طلبكـ ؟ اي يالغلا لو ماعليك امر Link to comment
#DRAGON!FIRE Posted March 13, 2014 Share Posted March 13, 2014 طبعا هذا الكود تضيفه مع كود فتح النافذة حقكـ . bindKey( "F2", "down", function( ) local g_Text = guiGetText( element ) if ( g_Text ~= "" ) then if not ( g_Text == "Type Your Name" ) then guiSetText( element, "Type Your Name" ) end end end ) Link to comment
فاّرس Posted March 13, 2014 Share Posted March 13, 2014 كيف يعني انت تكتب كلام؟ يعني انت من يوم سويت الاديت وهي فيها كلام؟ ويوم يضغط الزر يروح الكلام واذا رجع فتح النافذه يرجع نفس الكلام؟ Link to comment
#DRAGON!FIRE Posted March 13, 2014 Share Posted March 13, 2014 (edited) bindKey ( "F2", "down", function ( ) if ( guiGetVisible ( GUIEditor.window[1] ) == true ) then guiSetVisible ( GUIEditor.window[1], false ) showCursor ( false ) outputChatBox ( "Closed" ,255,0, 0 ,true ) else guiSetVisible ( GUIEditor.window[1], true ) local g_Text = guiGetText( edit ) if ( g_Text ~= "" ) then if not ( g_Text == "Type Your Name" ) then guiSetText( edit, "Type Your Name" ) end end showCursor ( true ) outputChatBox ( "Opened", 0, 255, 0, true ) end end ) Edited March 13, 2014 by Guest Link to comment
#Rmad~> Posted March 13, 2014 Author Share Posted March 13, 2014 bindKey ( "F2", "down", function ( ) if ( guiGetVisible ( GUIEditor.window[1] ) == true ) then guiSetVisible ( GUIEditor.window[1], false ) showCursor ( false ) outputChatBox ( "Closed" ,255,0, 0 ,true ) else guiSetVisible ( GUIEditor.window[1], true ) local g_Text = guiGetText( edit ) if ( g_Text ~= "" ) then if not ( g_Text == "Type Your Name" ) then guiSetText( edit, "Type Your Name" ) end end showCursor ( true ) outputChatBox ( "Opened", 0, 255, 0, true ) end end ) مشكور زاحف على المساععدة Link to comment
#DRAGON!FIRE Posted March 13, 2014 Share Posted March 13, 2014 مشكور زاحف على المساععدة حياك الله بـ اي وقت ^ . 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