if statement problem with enum value
#1

OK, for some reason I'm getting a tag missmatch on this:

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, "/admin") && pInMenu[playerid][inAdmin] == false) /////// warning 213: tag mismatch
    {
        print("Cool");
    }
    return 1;
}


heres the enum code

pawn Код:
enum pMenu
{
    inVip = false,
    inAdmin = false
}
new pInMenu[MAX_PLAYERS][pMenu];
I feel stupid that I don't know whats wrong
Reply


Messages In This Thread
if statement problem with enum value - by LeetModz - 30.04.2012, 05:10
Re: if statement problem with enum value - by ReneG - 30.04.2012, 05:13
Re: if statement problem with enum value - by LeetModz - 30.04.2012, 05:22
Re: if statement problem with enum value - by warcodes_ - 30.04.2012, 05:28
Re: if statement problem with enum value - by LeetModz - 30.04.2012, 05:39
Re: if statement problem with enum value - by warcodes_ - 30.04.2012, 05:51
Re: if statement problem with enum value - by LeetModz - 30.04.2012, 06:57
Re: if statement problem with enum value - by warcodes_ - 30.04.2012, 07:19
Re: if statement problem with enum value - by LeetModz - 30.04.2012, 07:43

Forum Jump:


Users browsing this thread: 1 Guest(s)