Jump to content
  • 0

How to block number in prompt


BaldiGT

Question

3 answers to this question

Recommended Posts

12 hours ago, TopGEOYT said:

ask clearly , i did not understand your question .

Nvm

how to block badwords in the prompt like this

badword = {"f*ck","sh*t","b*tch","etc"}
a = gg.prompt({"Enter your name"},nil,{"text"}
if a[1] == "badword" then gg.alert('Badword') os.exit()

@Enyby

Link to comment
Share on other sites

1 hour ago, BaldiGT said:

Nvm

how to block badwords in the prompt like this


badword = {"f*ck","sh*t","b*tch","etc"}
a = gg.prompt({"Enter your name"},nil,{"text"}
if a[1] == "badword" then gg.alert('Badword') os.exit()

@Enyby

local badword , a = {"f*ck","sh*t","b*tch","etc"} , gg.prompt({"Enter your name"},nil,{"text"}) or os.exit()
for l , I in pairs(badword) do
if string.find(a[1],I) then gg.alert("Badword") os.exit() end
end

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.