ilnaz Posted September 28, 2019 Share Posted September 28, 2019 function NameFunc (text) if string.find(text, "46.") then return true else return false end end NameFunc ("460") -- returned true, wtf!? Link to comment
Overkillz Posted September 28, 2019 Share Posted September 28, 2019 What are you trying to do ? Link to comment
Apocalypso Posted September 28, 2019 Share Posted September 28, 2019 if string.find(text, "46.") then <<<<<<< THIS basically return u true on every number(string) where in text it found numbers like 46 460 046 , 464646 46000... basically every time it goes true when the 46 is writed, and what u want to do? Link to comment
DNL291 Posted September 28, 2019 Share Posted September 28, 2019 Try: string.find(text, "46%.") Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now