Raised This Month: $ Target: $400
 0% 

Replacing letters


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Andu.
Member
Join Date: Oct 2013
Location: Belgravistan
Old 05-10-2016 , 14:42   Replacing letters
Reply With Quote #1

Hello.
I want to replace a word with '*'
I've done the code for that
PHP Code:
public cmdSay(id)
{
    new 
szArg[128], iPos,len;
    
read_args(szArg127);

    if((
iPos containi(szArg"word")) != -1)
    {
            
        
len strlen("word");
        while(
len--)
        {
            
szArg[iPos++] = '*';
            
//client_prin(id,print_chat, "%s",szArg);
        
}
    }

If i uncomment //client_prin(id,print_chat, "%s",szArg); it shows all steps like : if i say hello word it will show me hello *ord hello **rd etc.. else when i write the word, it shows on chat my word without censure.
Something i expected?
Andu. 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 18:34.


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