Tarek1 Posted January 17, 2018 Share Posted January 17, 2018 هل يوجد كود يجعلني استطيع كتابه الاعداد موجب فقط في الميمو ؟؟ Window = guiCreateWindow(0.3664,0.2764,0.3508,0.3477,"GUI Window",true) guiCreateMemo(17,79,414,246,"",false,Window) Link to comment
AHMED MOSTAFA Posted January 17, 2018 Share Posted January 17, 2018 (edited) edit = guiCreateEdit ( .... ) function test () if ( not tonumber ( guiGetText ( edit ) ) ) or ( guiGetText ( edit ) < 0 ) then guiSetText ( edit, "0" ) end end addEventHandler("onClientGUIChanged", edit, test ) Edited January 17, 2018 by killerProject 1 Link to comment
^iiEcoo'x_) Posted January 17, 2018 Share Posted January 17, 2018 تفضل الفنكشن ذا , يحوله للعدد موجب function ConvertToPositive ( Number ) return math.abs ( Number ) end 1 Link to comment
Jupi Posted January 17, 2018 Share Posted January 17, 2018 LOOOL تعريف فنكشن ماله اي لازمة math.abs بس وخلصنا 1 Link to comment
^iiEcoo'x_) Posted January 17, 2018 Share Posted January 17, 2018 22 minutes ago, Jupiter said: LOOOL تعريف فنكشن ماله اي لازمة math.abs بس وخلصنا كنت مسوي تحققات و حذفتهن وظل هذا لودهـ 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