Colonello Posted August 18, 2012 Author Share Posted August 18, 2012 Im about to start on a new project once I get back from vacation so I'm preplanning using my phone but on the more on topic side can anyone send me a link to or make a tutorial for a swear filter I want my game to be kid friendly so that people aren't swearing their heads off Link to comment Share on other sites More sharing options...
JohnPony Posted August 18, 2012 Share Posted August 18, 2012 Pulled this from a mirage tutorial.```Public Function CheckMessage(Index As Long, Msg As String)Dim kArray() As StringDim Swears As StringDim i As IntegerDim SwearChar As String Swears = "ass,f**k,sh*t,female dog,damn," kArray = Split(Swears, ",") SwearChar = "*" ' Thanks to Classified For Help with the Full Word Replacement For i = 0 To UBound(kArray) If InStr(LCase(Msg$), LCase(kArray(i))) Then Msg$ = Replace$(LCase(Msg$), LCase(kArray(i)), LCase(String(Len(kArray(i)), SwearChar))) End If Next iEnd Function```Add this in the handle message sub.```Call CheckMessage(Index, Msg)```Would of wrote one myself, but considering that one is already out there and usable i just dug it up :p Link to comment Share on other sites More sharing options...
Matt Posted August 18, 2012 Share Posted August 18, 2012 ```http://www.touchofdeathforums.com/smf2/index.php/topic,74678.0.html```Swearing filter ^You can find a list of most of the tutorials people post here at this linkhttp://www.touchofdeathforums.com/smf2/index.php/topic,75901.0.html Link to comment Share on other sites More sharing options...
Growlith1223 Posted August 18, 2012 Share Posted August 18, 2012 @Sigridunset:> ```> http://www.touchofdeathforums.com/smf/index.php/topic,74678.0.html> ```Swearing filter ^> > You can find a list of most of the tutorials people post here at this link> http://www.touchofdeathforums.com/smf2/index.php/topic,75901.0.htmlNice swear filter Link to comment Share on other sites More sharing options...
Matt Posted August 18, 2012 Share Posted August 18, 2012 Sorry. I grabbed that out of my list of tutorials on my computer. Just change the "smf" to "smf2". I fixed the original link. Link to comment Share on other sites More sharing options...
JohnPony Posted August 18, 2012 Share Posted August 18, 2012 @Sigridunset:> ```> http://www.touchofdeathforums.com/smf2/index.php/topic,74678.0.html> ```Swearing filter ^> > You can find a list of most of the tutorials people post here at this link> http://www.touchofdeathforums.com/smf2/index.php/topic,75901.0.htmlWhy in the hell did you just post the same thing i did? Link to comment Share on other sites More sharing options...
Colonello Posted August 18, 2012 Author Share Posted August 18, 2012 Thanks very much guys :D Link to comment Share on other sites More sharing options...
Matt Posted August 18, 2012 Share Posted August 18, 2012 @General:> Why in the hell did you just post the same thing i did?Oh wow. I didn't realize that, sorry. Link to comment Share on other sites More sharing options...
JohnPony Posted August 18, 2012 Share Posted August 18, 2012 @Sigridunset:> Oh wow. I didn't realize that, sorry.It's fine, i was just in a bad mood last night. Link to comment Share on other sites More sharing options...
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