StrTok Function
#16

Quote:
Originally Posted by <__Ethan__>
here... scene im not an assole like some others i got it from my script for you:

pawn Код:
strtok(const string[], &index)
{
    new length = strlen(string);
    while ((index < length) && (string[index] <= ' '))
    {
        index++;
    }

    new offset = index;
    new result[20];
    while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
    {
        result[index - offset] = string[index];
        index++;
    }
    result[index - offset] = EOS;
    return result;
}
Other people are assholes for asking him to search? These people aren't babies, they can find stuff themselves. Now what you have done is just spoonfed them like babies.
Reply


Messages In This Thread
StrTok Function - by [CK]Steel - 22.03.2009, 00:37
Re: StrTok Function - by [CK]Steel - 22.03.2009, 00:42
Re: StrTok Function - by Think - 22.03.2009, 00:48
Re: StrTok Function - by StrickenKid - 22.03.2009, 00:49
Re: StrTok Function - by Pyrokid - 22.03.2009, 01:06
Re: StrTok Function - by Pghpunkid - 22.03.2009, 01:19
Re: StrTok Function - by NigNog1 - 22.03.2009, 01:26
Re: StrTok Function - by Donny_k - 22.03.2009, 01:32
Re: StrTok Function - by Pyrokid - 22.03.2009, 01:37
Re: StrTok Function - by Remis93 - 22.03.2009, 12:04
Re: StrTok Function - by Pghpunkid - 22.03.2009, 20:49
Re: StrTok Function - by BeckzyBoi - 22.03.2009, 21:04
Re: StrTok Function - by Pyrokid - 22.03.2009, 23:59
Re: StrTok Function - by Pghpunkid - 23.03.2009, 00:25
Re: StrTok Function - by Pyrokid - 23.03.2009, 00:35
Re: StrTok Function - by Norn - 23.03.2009, 01:10
Re: StrTok Function - by Mikep - 23.03.2009, 01:13
Re: StrTok Function - by StrickenKid - 23.03.2009, 01:22
Re: StrTok Function - by Pyrokid - 23.03.2009, 01:59
Re: StrTok Function - by Pghpunkid - 23.03.2009, 05:33
Re: StrTok Function - by Donny_k - 23.03.2009, 08:54

Forum Jump:


Users browsing this thread: 7 Guest(s)