Tete omar Posted July 24, 2012 Share Posted July 24, 2012 if i want to get gui-edit letters , or how much letter did the player entered is there any function or something ? should i use gettok ? Link to comment
TAPL Posted July 24, 2012 Share Posted July 24, 2012 string.len() or https://wiki.multitheftauto.com/wiki/UtfLen Link to comment
Jaysds1 Posted July 24, 2012 Share Posted July 24, 2012 try this: addEventHandler("onClientGUIClick",guiRoot,function() if getElementType(source)=="gui-edit" then count = 0 addEventHandler("onClientKey",root,function(button) if button ~= "backspace" then count = count + 1 elseif button == "backspace" then count = count - 1 end end) end end,true) EDIT: lol, I made this Link to comment
Tete omar Posted July 24, 2012 Author Share Posted July 24, 2012 Thanks jaysds, thanks tapl open ur skybe jays Link to comment
Jaysds1 Posted July 24, 2012 Share Posted July 24, 2012 Well, I can't right now I'm on my moms computer Link to comment
Jaysds1 Posted July 24, 2012 Share Posted July 24, 2012 ok have fun Thanks, you too, BTW, I'm going on the IRC now 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