Raised This Month: $ Target: $400
 0% 

replace 1 letter


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
daniel46
Senior Member
Join Date: Dec 2011
Old 09-14-2013 , 07:59   replace 1 letter
Reply With Quote #1

what is the function to replace 1 char i know only replace_all

thanks for the helpers
daniel46 is offline
dark_style
Senior Member
Join Date: Jul 2009
Location: Bulgaria
Old 09-14-2013 , 08:05   Re: replace 1 letter
Reply With Quote #2

http://forums.alliedmods.net/showthread.php?t=194839
__________________




Last edited by dark_style; 09-14-2013 at 08:08.
dark_style is offline
daniel46
Senior Member
Join Date: Dec 2011
Old 09-14-2013 , 11:50   Re: replace 1 letter
Reply With Quote #3

its replace all i want to replace only 1 letter...

if i have in some string 20 a's i want to change only 1 a to some other letter and all others will stay
daniel46 is offline
<VeCo>
Veteran Member
Join Date: Jul 2009
Location: Bulgaria
Old 09-14-2013 , 11:55   Re: replace 1 letter
Reply With Quote #4

Break the loop after you have replaced one character.
__________________
<VeCo> is offline
Reply



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 18:46.


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