Jump to content

x[ استفسار ]x الارقام


Recommended Posts

السلام عليكم ..

هل اقدر احط في ايديت ارقام بس و اذا غير ارقام يكنسل الكتابة

لان جربت فكرة جدول في الحروف بس ممكن الشخص يكتب رموز مش هكتب كل الرموز اكيد

في حل افضل ؟

Link to comment
	addEventHandler ( "onClientGUIChanged" , YourEdit , 

	function (	)
	
	local TheText = guiGetText ( source )
	
	if ( not tonumber ( TheText ) ) then
	
	guiSetText( source, TheText:sub( 1, #TheText-1 ) )
		end
	end
	)

الطريقة الي فوق راح تحذف كل شي بالايدت مجرد كتابة اي حرف

اما طريقتي حتى لو كتب احرف وفيه ارقام بالايدت راح يمنعه من كتابة الاحرف فقط

  • Like 3
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...