How to replace a word
#1

Hi...
I wanted to do something like:
if you write "fuck" it writes **** instead
like:

Code:
		if(strfind(text, "fuck", true) != -1){
			strdel(text, return, return+4);
			strins(text, "****", return);
		}
but I don't know how to get the returns
( i thought return replaces the pos where the "fuck" starts)
Reply


Messages In This Thread
How to replace a word - by Sascha - 16.08.2010, 17:31
Re: How to replace a word - by Slice - 16.08.2010, 17:34
Re: How to replace a word - by (.Aztec); - 16.08.2010, 17:44
Re: How to replace a word - by bigcomfycouch - 16.08.2010, 17:47
Re: How to replace a word - by Sascha - 16.08.2010, 17:50

Forum Jump:


Users browsing this thread: 1 Guest(s)