one error (1045) : error 021: symbol already defined: "strtok"
#1

error

(1045) : error 021: symbol already defined: "strtok"

1042-1061 Lines


pawn Код:
// ***** Extra Stock Functions *****

stock strtok(const string[], &index)
{
    new length = strlen(string);
    while ((index < length) && (string[index] <= ' '))
    {
        index++;
    }

    new offset = index;
    new result[128];
    while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
    {
        result[index - offset] = string[index];
        index++;
    }
    result[index - offset] = EOS;
    return result;
}

Whats up??
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)