Tag mismatch warning - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Tag mismatch warning (
/showthread.php?tid=560250)
Tag mismatch warning -
DRIFT_HUNTER - 27.01.2015
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?