Compile Error [SOLVED]
#2

Add this to your GameMode

pawn Код:
stock strtok(const string[], &index,seperator=' ')
{
    new length = strlen(string);
    new offset = index;
    new result[MAX_STRING];
    while ((index < length) && (string[index] != seperator) && ((index - offset) < (sizeof(result) - 1)))
    {
        result[index - offset] = string[index];
        index++;
    }

    result[index - offset] = EOS;
    if ((index < length) && (string[index] == seperator))
    {
        index++;
    }
    return result;
}
Reply


Messages In This Thread
Compile Error [SOLVED] - by [WSM]Deadly_Evil - 03.02.2010, 04:58
Re: Compile Error - by AKA_Cross - 03.02.2010, 05:06
Re: Compile Error - by mansonh - 03.02.2010, 05:23
Re: Compile Error - by Correlli - 03.02.2010, 05:26
Re: Compile Error - by [WSM]Deadly_Evil - 03.02.2010, 05:55

Forum Jump:


Users browsing this thread: 1 Guest(s)