Focker Posted August 5, 2015 Share Posted August 5, 2015 Hi All . how to make you can not use numbers in the guiCreateEdit ? Link to comment
LabiVila Posted August 6, 2015 Share Posted August 6, 2015 If you are using guiCreateEdit it means you're using a button too (most likely), if yes then you can try getting it's text by guiGetText and checking if it's not a number then you can continue Link to comment
Focker Posted August 6, 2015 Author Share Posted August 6, 2015 a function to Server.lua for creating something with some number forbid if that function is, but I need to and exit with warning .. there functions that could provide me? Link to comment
LabiVila Posted August 6, 2015 Share Posted August 6, 2015 I can't get your sentence at all, you better explain well otherwise I can't help you at all Link to comment
GTX Posted August 6, 2015 Share Posted August 6, 2015 Use regex. /^[a-zA-Z][\sa-zA-Z]*$/ Would do the job. 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