mSelection include error
#1

I downloaded mSelection include from ****** and now I putted one on include folder and other on pawno--include folder
and did
#include <mSelection> on the gamemode but I get include error here what i found, I dont know how to fix it plz help !!

....\pawno\include\mSelection.inc(698 ) : warning 219: local variable "string" shadows a variable at a preceding level
pawn Код:
(698)stock mS_strtok(const string[], &index)
{
    new length = strlen(string);
    while ((index < length) && (string[index] <= ' '))
    {
        index++;
    }

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

The string "string" already exists in your own script, at a higher level. Do you have a global variable named "string" in your own script? If yes, try to change it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)