[HELP] TextCommands!
#5

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;
}
Reply


Messages In This Thread
[HELP] TextCommands! - by Smiths - 12.09.2009, 12:44
Re: [HELP] TextCommands! - by [eLg]Timmy - 12.09.2009, 12:49
Re: [HELP] TextCommands! - by Smiths - 12.09.2009, 12:50
Re: [HELP] TextCommands! - by Smiths - 12.09.2009, 12:58
Re: [HELP] TextCommands! - by [eLg]Timmy - 12.09.2009, 13:16
Re: [HELP] TextCommands! - by Smiths - 12.09.2009, 13:19
Re: [HELP] TextCommands! - by [eLg]Timmy - 12.09.2009, 13:20
Re: [HELP] TextCommands! - by Smiths - 12.09.2009, 13:29
Re: [HELP] TextCommands! - by Smiths - 12.09.2009, 14:20
Re: [HELP] TextCommands! - by MadeMan - 12.09.2009, 14:54

Forum Jump:


Users browsing this thread: 1 Guest(s)