Jump to content
  • 0

how to make gg can count written text?


XkPP

Question

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

3 answers to this question

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.