Replace a word with another.
#3

Quote:
Originally Posted by xRyder
View Post
Not sure if this will help, but you can use strdel and strins.
Example: (I found it somewhere around here)
pawn Code:
new s1[128] = "I'm eating cakes";
new s2[] = "shitting";

strdel(s1, 4, 10);
strins(s1, s2, 4);
   
print(s1);
I actually tried with strdel and strins.

The thing is that i must use a loop and search on the text for the word. And replace it.
When i tried with strdel and strins it either crashed my server, or the text was weird.
Reply


Messages In This Thread
Replace a word with another. - by Zh3r0 - 05.02.2011, 20:09
Re: Replace a word with another. - by xRyder - 05.02.2011, 20:20
Re: Replace a word with another. - by Zh3r0 - 05.02.2011, 20:23
Re: Replace a word with another. - by Mauzen - 05.02.2011, 20:28
Re: Replace a word with another. - by Hiddos - 05.02.2011, 20:29
Re: Replace a word with another. - by [03]Garsino - 05.02.2011, 20:31

Forum Jump:


Users browsing this thread: 2 Guest(s)