PDA

View Full Version : Tag mismatch warning


DRIFT_HUNTER
27/01/2015, 06:37 PM
Can someone help me get rid of tag mismatch warning?

enums...

enum UserInterfaceBase
{
PlayerText:BACKGROUND_TD,
PlayerText:BORDER_TOP_TD,
PlayerText:BORDER_LEFT_TD,
PlayerText:BORDER_RIGHT_TD,
PlayerText:BORDER_BOTTOM_TD,
PlayerText:HEADER_TD,
PlayerText:TITLE_TD,
PlayerText:CLOSE_TD,
}

enum UserInterfaceInfo
{
BaseDialogTD[UserInterfaceBase],
Float:UIWidth,
Float:UIHeight
}
new UIInfo[MAX_PLAYERS][UserInterfaceInfo];


These is how its used...

UIInfo[playerid][BaseDialogTD][BACKGROUND_TD] = CreatePlayerTextDraw(playerid, posX, posY, "Background");
PlayerTextDrawBackgroundColor(playerid, UIInfo[playerid][BaseDialogTD][BACKGROUND_TD], -1);


And these is the problem...

for(new i = _:UserInterfaceBase; i >= 0; i--)
{
//These is the line that gives warning
PlayerTextDrawShow(playerid, UIInfo[playerid][BaseDialogTD][0]);
}


I tried to prefix with PlayerText label whole variable,then just attribute,and then both, also tried to remove label by using _: and combining PlayerText with _: ( No success at all...)
Maybe im using enum wrong way?