XkPP Posted July 15, 2022 Share Posted July 15, 2022 local SK = gg.prompt({"Text"},nil,{"text"}) if SK == nil then return end gg.alert(SK[1]) for example, write 00000 = 5 texts, how can gg be able to count the written text, is there a way? please help Link to comment Share on other sites More sharing options...
MAARS Posted July 15, 2022 Share Posted July 15, 2022 local prompt = gg.prompt( {"Enter username:"}, nil, {"text"} ) gg.alert(prompt[1]:len()) gg.alert(string.len(prompt[1])) Link to comment Share on other sites More sharing options...
XkPP Posted July 15, 2022 Author Share Posted July 15, 2022 4 hours ago, MAARS said: local prompt = gg.prompt( {"Enter username:"}, nil, {"text"} ) gg.alert(prompt[1]:len()) gg.alert(string.len(prompt[1])) Thanks Link to comment Share on other sites More sharing options...
HorridModz Posted July 19, 2022 Share Posted July 19, 2022 The written text is a string. Look at the lua string library for help working with strings. Link to comment Share on other sites More sharing options...
Question
XkPP
for example, write 00000 = 5 texts, how can gg be able to count the written text, is there a way?
please help
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.