(78) : error 035: argument type mismatch (argument 2)
#1

error:
pawn Код:
(78) : error 035: argument type mismatch (argument 2)
pawn Код:
forward isPlayerIn(playerid, menu);
public isPlayerIn(playerid, menu)
{
    if(strcmp("main", menu, true)) //if "main" == menu (menu being a string parameter with the name of a menu screen, ie. "main", "weapons", "cars" etc.....)
    {
        //opening users .txt file
        new readLine[64];
        new str[50], name[MAX_PLAYER_NAME];
        GetPlayerName(playerid, name, sizeof(name));
        format(str,sizeof(str),"/Users/%s.txt",name);
        new File:example = fopen(str, io_read);
       
        while(fread(example, readLine)) //reads the file line-by-line
        {
            if(strcmp(readLine, "inMenu = true", true)) //if a line in the example file has "inMain = true"
            {
                fclose(example);
                return true;
            }
        }
        fclose(example);
    }
    return false;
}
Can someone help?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)