27.01.2015, 18:37
Can someone help me get rid of tag mismatch warning?
enums...
These is how its used...
And these is the problem...
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?
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];
Код:
UIInfo[playerid][BaseDialogTD][BACKGROUND_TD] = CreatePlayerTextDraw(playerid, posX, posY, "Background"); PlayerTextDrawBackgroundColor(playerid, UIInfo[playerid][BaseDialogTD][BACKGROUND_TD], -1);
Код:
for(new i = _:UserInterfaceBase; i >= 0; i--)
{
//These is the line that gives warning
PlayerTextDrawShow(playerid, UIInfo[playerid][BaseDialogTD][0]);
}
Maybe im using enum wrong way?

