Jump to content

Help To get Text in edit


iMr.3a[Z]eF

Recommended Posts

Posted

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 

Posted
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...