Compile Error [SOLVED]
#1

SOLVED!
Reply
#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
#3

He doesn't need to define it.
symbol is never used: "strtok"
means you never use it anywhere. You can ignore this error or delete strtok definition.
Reply
#4

Never ignore the warnings.

Delete the function or add this:
pawn Код:
#pragma unused functionName
So it would be
pawn Код:
#pragma unused strtok
in your case but it's better if you delete it.
Reply
#5

Ok i have removed strtok
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)