ProgressBar - Tag mismatch - 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: ProgressBar - Tag mismatch (
/showthread.php?tid=373087)
ProgressBar - Tag mismatch -
[SF]OutLawZ - 29.08.2012
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?
Re: ProgressBar - Tag mismatch -
Misiur - 29.08.2012
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)
Re: ProgressBar - Tag mismatch -
[SF]OutLawZ - 29.08.2012
Thank you!