ProgressBar - Tag mismatch
#1

Hello, I'm getting some weird tag mismatches for my rob progress bar.

gm/Rob.inc(16 : warning 213: tag mismatch
gm/Rob.inc(193) : warning 213: tag mismatch
gm/Rob.inc(21 : warning 213: tag mismatch
gm/Rob.inc(22 : warning 213: tag mismatch
gm/Rob.inc(229) : warning 213: tag mismatch
gm/Rob.inc(242) : warning 213: tag mismatch
gm/Rob.inc(410) : warning 213: tag mismatch
gm.pwn(1027) : warning 213: tag mismatch

These are the lines, not in order but its self explanatory.
Код:
new ROBBAR[MAX_PLAYERS];
ROBBAR[playerid] = CreateProgressBar(50.0, 315.0,70.0,5.0, COLOUR_INFO, gRobData[i][E_ROB_LOCKERTIME]);
SetProgressBarValue(ROBBAR[playerid],locktimer[playerid]);
TextDrawHideForPlayer(playerid, Rob);
DestroyProgressBar(ROBBAR[playerid]);
Anyone know how to fix these warnings?
Reply
#2

You need a strong Bar tag
pawn Код:
//Change
new ROBBAR[MAX_PLAYERS];
//to
new Bar:ROBBAR[MAX_PLAYERS] =  {INVALID_BAR_ID, ...}
`e: This won't hurt and will help to locate next empty bar (0 is a valid bar ID)
Reply
#3

Thank you!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)