How to replace characters in a string automatically?
#2

pawn Код:
public OnPlayerText(playerid, text)
{
  if (writting ad text)
  {
    new idx = 0;
    while(text[idx] != '\0')
    {
      switch(text[idx])
      {
        case '@': text[idx] = 'a';
        case 'Ђ': text[idx] = 'e';
      }
      idx++;
    }
  }
}
Something like that ?
Reply


Messages In This Thread
How to replace characters in a string automatically? - by LTomi - 17.10.2009, 13:38
Re: How to replace characters in a string automatically? - by dice7 - 17.10.2009, 13:47
Re: How to replace characters in a string automatically? - by MenaceX^ - 17.10.2009, 13:51

Forum Jump:


Users browsing this thread: 2 Guest(s)