[HELP] COP
#6

pawn Код:
//Add this somewhere.
strtok(const string[], &index, separator = ' ')
{
  new length = strlen(string);
  while ((index < length) && (string[index] <= separator))
  {
    index++;
  }
  new offset = index;
  new result[20];
  while ((index < length) && (string[index] > separator) && ((index - offset) < (sizeof(result) - 1)))
  {
    result[index - offset] = string[index];
    index++;
  }
  result[index - offset] = EOS;
  return result;
}
Reply


Messages In This Thread
[HELP] COP - by Hot - 21.03.2009, 22:41
Re: [HELP] COP - by MenaceX^ - 21.03.2009, 22:48
Re: [HELP] COP - by Hot - 21.03.2009, 22:54
Re: [HELP] COP - by Pghpunkid - 21.03.2009, 23:32
Re: [HELP] COP - by Rks25 - 21.03.2009, 23:34
Re: [HELP] COP - by MenaceX^ - 22.03.2009, 00:14

Forum Jump:


Users browsing this thread: 1 Guest(s)