Car Mod Help
#9

annoyingly, still doesn't work.
could my strtok() be buggy?
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
Car Mod Help - by jonrb - 23.01.2010, 09:12
Re: Car Mod Help - by mansonh - 23.01.2010, 09:17
Re: Car Mod Help - by jonrb - 23.01.2010, 09:35
Re: Car Mod Help - by mansonh - 23.01.2010, 10:37
Re: Car Mod Help - by jonrb - 24.01.2010, 08:10
Re: Car Mod Help - by Joey09 - 24.01.2010, 08:15
Re: Car Mod Help - by jonrb - 24.01.2010, 08:18
Re: Car Mod Help - by mansonh - 24.01.2010, 12:37
Re: Car Mod Help - by jonrb - 24.01.2010, 13:14
Re: Car Mod Help - by mansonh - 24.01.2010, 13:17

Forum Jump:


Users browsing this thread: 5 Guest(s)