Tag mismatch warning
#1

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?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)