I had a question about the native.newTextField API. I wanted to make it so that users can’t input bad words, but currently I only have thought of one way to do it:
[lua] if chatbox.text == ‘*****’ then native.showAlert( “YOU HAVE BEEN WARNED”, “You are banned”, { “Accept”}) return end[/lua]
Would anyone know how to make it so that if a user types a sentence, and that one word appears, then this message pop’s up?
API Link: http://developer.anscamobile.com/reference/index/nativenewtextfield
Regards,
Jordan Schuetz
Ninja Pig Studios [import]uid: 29181 topic_id: 22583 reply_id: 322583[/import]