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 My in-game name: Jaysds1 Retired CMG Scripter World Of Tanks GameMode (Open-Source): https://github.com/Jaysds1/mtasa-wot-gamemode Online GUI-Editor (WIP): https://forum.mtasa.com/topic/47678-online-gui-editor/
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 Well, I can't right now I'm on my moms computer My in-game name: Jaysds1 Retired CMG Scripter World Of Tanks GameMode (Open-Source): https://github.com/Jaysds1/mtasa-wot-gamemode Online GUI-Editor (WIP): https://forum.mtasa.com/topic/47678-online-gui-editor/
Jaysds1 Posted July 24, 2012 Posted July 24, 2012 ok have fun Thanks, you too, BTW, I'm going on the IRC now My in-game name: Jaysds1 Retired CMG Scripter World Of Tanks GameMode (Open-Source): https://github.com/Jaysds1/mtasa-wot-gamemode Online GUI-Editor (WIP): https://forum.mtasa.com/topic/47678-online-gui-editor/
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