Tete omar Posted July 24, 2012 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 ?
TAPL Posted July 24, 2012 Posted July 24, 2012 string.len() or https://wiki.multitheftauto.com/wiki/UtfLen
Jaysds1 Posted July 24, 2012 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
Tete omar Posted July 24, 2012 Author Posted July 24, 2012 Thanks jaysds, thanks tapl open ur skybe jays
Jaysds1 Posted July 24, 2012 Posted July 24, 2012 ok have fun Thanks, you too, BTW, I'm going on the IRC now
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