Raised This Month: $ Target: $400
 0% 

Solved Find and Replace letter/string


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Author Message
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 04-30-2018 , 00:38   Find and Replace letter/string
#1

Hello masters, how could I change a word or letter from a string? Delete only the letter and not the entire string.

I created the example below only for understanding.

PHP Code:
get_cvar_string("hostname",OldHostName,charsmax(OldHostName))
    
if(
containi(OldHostName"blablabla")
{
    
/// ??? 

Last edited by iceeedr; 04-30-2018 at 10:15.
iceeedr is offline
Send a message via Skype™ to iceeedr
Airkish
AlliedModders Donor
Join Date: Apr 2016
Location: Lithuania
Old 04-30-2018 , 03:11   Re: Find and Replace letter/string
#2

PHP Code:
replace_all(OldHostNamecharsmax(OldHostName), "Word/Letter""Replacement"); 

Last edited by Airkish; 04-30-2018 at 03:12.
Airkish is offline
instinctpt1
Senior Member
Join Date: Dec 2016
Location: Chandigarh, India
Old 04-30-2018 , 06:26   Re: Find and Replace letter/string
#3

PHP Code:
replace_string(OldHostNamecharsmax(OldHostName), "blablabla""To replace with.."false
Read here
instinctpt1 is offline
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 04-30-2018 , 10:14   Re: Find and Replace letter/string
#4

Quote:
Originally Posted by Airkish View Post
PHP Code:
replace_all(OldHostNamecharsmax(OldHostName), "Word/Letter""Replacement"); 
Thanks, it works.

Quote:
Originally Posted by instinctpt1 View Post
PHP Code:
replace_string(OldHostNamecharsmax(OldHostName), "blablabla""To replace with.."false
Read here
Thanks, did not know of the replace_string.
iceeedr is offline
Send a message via Skype™ to iceeedr
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 04-30-2018 , 10:36   Re: Find and Replace letter/string
#5

Ue, a pessoa cria um pug e não sabe editar os bagui? Hilário.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 04-30-2018 , 10:41   Re: Find and Replace letter/string
#6

Quote:
Originally Posted by EFFx View Post
Ue, a pessoa cria um pug e não sabe editar os bagui? Hilário.
Vai cortar os pulsos na esquina, estou com um projeto nada relacionado a pug ;*

Do not bother me in a closed topic.
iceeedr is offline
Send a message via Skype™ to iceeedr
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 04-30-2018 , 15:26   Re: Find and Replace letter/string
#7

Ui, CRIANDO UM PROJETO KKKKKKKKKKKKKKKKKj, c nem sabe fazer plugins corno, tudo copiado pra dizer que fez. Cuidado pra sua mulher te deixar com dois chifres e pesando 120 kilos em KKKKKKKKJ.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
Old 04-30-2018, 15:43
iceeedr
This message has been deleted by asherkin. Reason: Report, don't reply.
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:44.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode