aBo-Khaled_)x Posted April 27, 2013 Share Posted April 27, 2013 السلآم عليكم ,, وصف الكود المطلوب ..: آذآ ظغطت موافق مثلآ وآنآ م عبيت كل الفرآغآت يقولي يرجى إكمآل الحقول أتمنى فهمتونيَ تحيآتي ,,, Link to comment
iPrestege Posted April 27, 2013 Share Posted April 27, 2013 guiGetText استخدمةة مع "onClientGUIClick" مع string.len و بـ التوفيق .. ! Link to comment
aBo-Khaled_)x Posted April 27, 2013 Author Share Posted April 27, 2013 ممكن تشرح ليَ string.len ? Link to comment
iPrestege Posted April 27, 2013 Share Posted April 27, 2013 if ( string.len( element ) < 2 ) then كذا يتحقق انة الشيء اقل شيء يكون 2 ويسوي الوظيفة ! يعني الـ element حقك الايديت .. ميمو .. اي شيء تبية ! اقل شيء يكون فية شيئين ! حرفين اي شيء اهم شيء 2 ذذ Link to comment
aBo-Khaled_)x Posted April 27, 2013 Author Share Posted April 27, 2013 element آسم آلآدت ولآ كيف ^ Link to comment
aBo-Khaled_)x Posted April 27, 2013 Author Share Posted April 27, 2013 function Click() if source == GUIEditor_Button[1] then if ( string.len( element ) < 2 ) then outputChatBox ( "أنت لم تضع شيء ! " .. guiGetText ( dummyGUIElement ) ) end end addEventHandler("onClientGUIClick", root, Click) كذآ صح ؟ Link to comment
iPrestege Posted April 27, 2013 Share Posted April 27, 2013 لم يتم التجربةة .. function Click() if source == GUIEditor_Button[1] then local element = guiGetText( الايديت ) if ( string.len( element ) < 2 ) then outputChatBox ( "أنت لم تضع شيء ! " ) return nil end end end addEventHandler("onClientGUIClick",root,Click) كلنت ! Link to comment
Blaawee Posted April 28, 2013 Share Posted April 28, 2013 لا تستخدم : nil جرب ذآ addEventHandler( 'onClientGUIClick', guiRoot, function( ) if souurce == GUIEditor_Button[ 1 ] then local text = guiGetText( الايديت); if text:len( ) < 5 then outputChatBox ( 'أنت لم تضع شيء !' ); return end end end ); Link to comment
3NAD Posted April 28, 2013 Share Posted April 28, 2013 addEventHandler ( "onClientGUIClick", root, function ( ) if source == الزر then local text = guiGetText ( الايديت ); if text == "" or text == " " then return outputChatBox ( "أنت لم تضع شيء !" ); end end end ); Link to comment
aBo-Khaled_)x Posted April 28, 2013 Author Share Posted April 28, 2013 يعطيكم العآفية عنآد + برسستيج + بلآوي الله يوفقكم .~ <3 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