[HELP] Replacing part of word/text
Hello AlliedModders,
I have this little problem replacing part of word. I tried many things .. but it didn't work for me. Anyway, what I am trying to do is something like: new word[20] format(word, 20, "\dAdmin") And when I use it to replace the "\d" with "" and keep only "Admin". Anyway that was just an example .. I need this "replacement" for different purpose .. if its possible, please share :D. Thanks in advance :) |
Re: [HELP] Replacing part of word/text
|
Re: [HELP] Replacing part of word/text
Yea ... that's it. Thnx :)
|
Re: [HELP] Replacing part of word/text
1 more question .. if possible ... Is there a way to add something like "Mega" before the "Admin" word ? And make it look like: "MegaAdmin" ? ... I took a look at add(dest[],len,const src[],max=0); .. but it concatenates one string onto another and doesn't get my job done ...
|
Re: [HELP] Replacing part of word/text
PHP Code:
|
Re: [HELP] Replacing part of word/text
Quote:
Code:
|
Re: [HELP] Replacing part of word/text
OK. Thnx for the fast answers :up:
|
Re: [HELP] Replacing part of word/text
I was trying to add "Mega" without changing/replacing "Admin" :D .. But I guess that can't be done .. thnx for the help!
|
| All times are GMT -4. The time now is 09:26. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.