array sizes do not match, or destination array is too small
#8

Ok then don't include the file and try just declaring the function:
pawn Код:
stock strrest(const string[], &index)
{
    new length = strlen(string);
    while ((index < length) && (string[index] <= ' '))
    {
        index++;
    }
    new offset = index;
    new result[128];
    while ((index < length) && ((index - offset) < (sizeof(result) - 1)))
    {
        result[index - offset] = string[index];
        index++;
    }
    result[index - offset] = EOS;
    return result;
}
That should really work then, it does for me at least. As you can see, result in strrest has the same size as tmp and cmd.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)