[HELP] Replace word
#5

Quote:
Originally Posted by Last_Stand_Guardian
View Post
Try:
pawn Code:
public OnPlayerText(playerid, text[])
{
      if(strfind(text, "idiot") != -1)
      {
            new Position = strfind(text, "idiot", true);
            strdel(text, Position, Position+5);
            strins(text, "censored", Position, 10);
            SendPlayerMessageToAll(playerid, text);
            return 0;
      }
}
return 1;
I'm not sure if it works, but it could look like this xD ^^
I'll try
Reply


Messages In This Thread
[HELP] Replace word - by WThieves - 20.07.2010, 14:13
Re: [HELP] Replace word - by [XST]O_x - 20.07.2010, 14:15
Re: [HELP] Replace word - by WThieves - 20.07.2010, 18:04
Re: [HELP] Replace word - by Last_Stand_Guardian - 20.07.2010, 18:20
Re: [HELP] Replace word - by WThieves - 20.07.2010, 18:33
Re: [HELP] Replace word - by Tannz0rz - 20.07.2010, 18:37
Re: [HELP] Replace word - by WThieves - 20.07.2010, 20:37
Re: [HELP] Replace word - by WThieves - 20.07.2010, 20:55
Re: [HELP] Replace word - by Tannz0rz - 20.07.2010, 22:19
Re: [HELP] Replace word - by Brian_Furious - 20.07.2010, 22:25

Forum Jump:


Users browsing this thread: 1 Guest(s)