iMr.3a[Z]eF Posted October 2, 2013 Share Posted October 2, 2013 What function shall I use to get text inside the edit. I want the text disable only 8 Words no more I tried this. Never works local text = guiGetText(GUIEditor.edit[1]); if text > 8 then return outputChatBox("* You can just enter 8 words and numers only",255,0,0,true) end Link to comment
CocaColaBear Posted October 2, 2013 Share Posted October 2, 2013 local text = guiGetText(GUIEditor.edit[1]); if #text > 8 then return outputChatBox("* You can just enter 8 words and numers only",255,0,0,true) end or use: string.len utfLen Link to comment
iMr.3a[Z]eF Posted October 2, 2013 Author Share Posted October 2, 2013 local text = guiGetText(GUIEditor.edit[1]); if #text > 8 then return outputChatBox("* You can just enter 8 words and numers only",255,0,0,true) end or use: string.len utfLen that was usefully code thank you 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