JeViCo Posted May 8, 2018 Share Posted May 8, 2018 Hello everyone! How can i allow player to input only numbers? I mean he/she can write only numbers in editbox, but when a player tries to write letter or *&$% things\ nothing will happen. How can i compare it with pattern? or something like that? Link to comment
Mahlukat Posted May 8, 2018 Share Posted May 8, 2018 (edited) guiSetProperty(yourEdit, "ValidationString", "[0-9]*") Edited May 8, 2018 by Mahlukat 1 Link to comment
JeViCo Posted May 8, 2018 Author Share Posted May 8, 2018 31 minutes ago, Mahlukat said: guiSetProperty(yourEdit, "ValidationString", "[0-9]*") Thanks! That's even better than patterns) 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