Raised This Month: $ Target: $400
 0% 

[HELP] Replacing part of word/text


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
addons_zz
Veteran Member
Join Date: Aug 2015
Location: Dreams, zz
Old 01-05-2016 , 13:51   Re: [HELP] Replacing part of word/text
Reply With Quote #5

Quote:
Originally Posted by kapitana View Post
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 ...
You cannot replace 'Admin' with 'MegaAdmin'?

Code:
    new text[ 101 ];     formatex( text, sizeof( text ) - 1, "Hi am an Admin" );     replace(text, sizeof( text ) - 1, "Admin", "MegaAdmin" );
__________________
Plugin: Sublime Text - ITE , Galileo
Multi-Mod: Manager / Plugin / Server

Support me on Patreon, Ko-fi, Liberapay or Open Collective

Last edited by addons_zz; 01-05-2016 at 13:58. Reason: spelling fix
addons_zz is offline
 



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 09:26.


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