Tag mismatch warning on strcmp lines
#1

pawn Код:
if(!strcmp(PlayerInfo[playerid][pInv1],"empty",1)) PlayerInfo[playerid][pInv1] = item;
I have about 90 other lines like this one, all giving out tag mismatch warnings and I can't figure out why. InvX is a string in my player enum and 'item' in this instance is also a string. All of the same size (32 chars).

These other uses are giving out the same warning:
pawn Код:
if(!strcmp(PlayerInfo[playerid][pInv7],"empty",1)) sc++;
pawn Код:
else if(!strcmp(PlayerInfo[playerid][pInv12],"empty",1)) return 12;
I've tried several things and can't seem to shake the warnings away. And I've expanded the braces to make something like this:
pawn Код:
if(!strcmp(PlayerInfo[playerid][pInv1],"empty",1))
{
    PlayerInfo[playerid][pInv1] = item;
}
so I know that the problem is somewhere in the strcmp function and not where I set the inventory item.
Reply


Messages In This Thread
Tag mismatch warning on strcmp lines - by zDevon - 26.01.2013, 16:58
Re: Tag mismatch warning on strcmp lines - by arakuta - 26.01.2013, 17:25
Re: Tag mismatch warning on strcmp lines - by zDevon - 26.01.2013, 17:32
Re: Tag mismatch warning on strcmp lines - by Roach_ - 26.01.2013, 17:58
Re: Tag mismatch warning on strcmp lines - by zDevon - 26.01.2013, 18:00
Re: Tag mismatch warning on strcmp lines - by zDevon - 27.01.2013, 13:54

Forum Jump:


Users browsing this thread: 1 Guest(s)