SA-MP Forums Archive
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: Tag Mismatch (/showthread.php?tid=655057)



Tag Mismatch - AlfaSufaIndo - 12.06.2018

Hey Guys!! Can you guys help me with this warning? I'm sorry for so many "Tag Mismatch" xD . Thank you!!
Код:
gamemodes\a.pwn(801) : warning 213: tag mismatch
gamemodes\a.pwn(802) : warning 213: tag mismatch
gamemodes\a.pwn(803) : warning 213: tag mismatch
gamemodes\a.pwn(804) : warning 213: tag mismatch
gamemodes\a.pwn(805) : warning 213: tag mismatch

gamemodes\a.pwn(33940) : warning 213: tag mismatch
gamemodes\a.pwn(33941) : warning 213: tag mismatch
gamemodes\a.pwn(33942) : warning 213: tag mismatch
gamemodes\a.pwn(33943) : warning 213: tag mismatch
gamemodes\a.pwn(33944) : warning 213: tag mismatch
gamemodes\a.pwn(33946) : warning 213: tag mismatch
gamemodes\a.pwn(33947) : warning 213: tag mismatch
gamemodes\a.pwn(33948) : warning 213: tag mismatch
gamemodes\a.pwn(33949) : warning 213: tag mismatch
gamemodes\a.pwn(33950) : warning 213: tag mismatch
gamemodes\a.pwn(33952) : warning 213: tag mismatch
gamemodes\a.pwn(33953) : warning 213: tag mismatch
gamemodes\a.pwn(33954) : warning 213: tag mismatch
gamemodes\a.pwn(33955) : warning 213: tag mismatch
gamemodes\a.pwn(33956) : warning 213: tag mismatch
gamemodes\a.pwn(33958) : warning 213: tag mismatch
gamemodes\a.pwn(33958) : warning 213: tag mismatch
gamemodes\a.pwn(33959) : warning 213: tag mismatch
gamemodes\a.pwn(33960) : warning 213: tag mismatch
gamemodes\a.pwn(33961) : warning 213: tag mismatch
gamemodes\a.pwn(33962) : warning 213: tag mismatch
gamemodes\a.pwn(33962) : warning 213: tag mismatch

gamemodes\a.pwn(102355) : warning 213: tag mismatch
gamemodes\a.pwn(102356) : warning 213: tag mismatch
gamemodes\a.pwn(102357) : warning 213: tag mismatch
gamemodes\a.pwn(102372) : warning 213: tag mismatch
gamemodes\a.pwn(102373) : warning 213: tag mismatch
gamemodes\a.pwn(102374) : warning 213: tag mismatch

gamemodes\a.pwn(103995) : warning 213: tag mismatch
gamemodes\a.pwn(103996) : warning 213: tag mismatch
gamemodes\a.pwn(103997) : warning 213: tag mismatch
gamemodes\a.pwn(104027) : warning 213: tag mismatch
gamemodes\a.pwn(104028) : warning 213: tag mismatch
gamemodes\a.pwn(104029) : warning 213: tag mismatch
gamemodes\a.pwn(104030) : warning 213: tag mismatch
gamemodes\a.pwn(104031) : warning 213: tag mismatch
gamemodes\a.pwn(104033) : warning 213: tag mismatch
gamemodes\a.pwn(104034) : warning 213: tag mismatch
gamemodes\a.pwn(104035) : warning 213: tag mismatch
gamemodes\a.pwn(104036) : warning 213: tag mismatch
gamemodes\a.pwn(104036) : warning 213: tag mismatch
gamemodes\a.pwn(104037) : warning 213: tag mismatch
gamemodes\a.pwn(104039) : warning 213: tag mismatch
gamemodes\a.pwn(104040) : warning 213: tag mismatch
gamemodes\a.pwn(104041) : warning 213: tag mismatch
PHP код:
(LINE801)new PlayerBar:armourbar[MAX_PLAYERS] = {INVALID_BAR_ID, ...};
(
LINE802)new PlayerBar:healbar[MAX_PLAYERS] = {INVALID_BAR_ID, ...};
(
LINE803)new PlayerBar:hbar[MAX_PLAYERS] = {INVALID_BAR_ID, ...};
(
LINE804)new PlayerBar:bbar[MAX_PLAYERS] = {INVALID_BAR_ID, ...};
(
LINE805)new PlayerBar:ebar[MAX_PLAYERS] = {INVALID_BAR_ID, ...};
(
LINE33940)healbar[playerid] = CreateProgressBar(549.0353.754.012.0, -16777045100.0);
(
LINE33941)armourbar[playerid] = CreateProgressBar(549.0368.354.012.0, -1100.0);
(
LINE33942)hbar[playerid] = CreateProgressBar(549.5395.254.012.016711766100.0);
(
LINE33943)bbar[playerid] = CreateProgressBar(549.5413.754.012.016711766100.0);
(
LINE33944)ebar[playerid] = CreateProgressBar(549.5431.654.012.016711766100.0);
(
LINE33946)SetProgressBarValue(armourbar[playerid], armour);
(
LINE33947)SetProgressBarValue(hbar[playerid], PlayerInfo[playerid][pHunger]);
(
LINE33948)SetProgressBarValue(ebar[playerid], PlayerInfo[playerid][pEnergy]);
(
LINE33949)SetProgressBarValue(bbar[playerid], PlayerInfo[playerid][pBladder]);
(
LINE33950)SetProgressBarValue(healbar[playerid], health);
(
LINE33952)ShowProgressBarForPlayer(playeridhealbar[playerid]);
(
LINE33953)ShowProgressBarForPlayer(playeridarmourbar[playerid]);
(
LINE33954)ShowProgressBarForPlayer(playeridebar[playerid]);
(
LINE33955)ShowProgressBarForPlayer(playeridhbar[playerid]);
(
LINE33956)ShowProgressBarForPlayer(playeridbbar[playerid]);
(
LINE33958)UpdateProgressBar(armourbar[playerid], armour);
(
LINE33959)UpdateProgressBar(hbar[playerid], PlayerInfo[playerid][pHunger]);
(
LINE33960)UpdateProgressBar(ebar[playerid], PlayerInfo[playerid][pEnergy]);
(
LINE33961)UpdateProgressBar(bbar[playerid], PlayerInfo[playerid][pBladder]);
(
LINE33962)UpdateProgressBar(healbar[playerid], health);
(
LINE102355)SetProgressBarValue(ebar[i], PlayerInfo[i][pEnergy]);
(
LINE102356)UpdateProgressBar(ebar[i], PlayerInfo[i][pEnergy]);
(
LINE102357)ShowProgressBarForPlayer(iebar[i]);
(
LINE102372)SetProgressBarValue(bbar[i], PlayerInfo[i][pBladder]);
(
LINE102373)UpdateProgressBar(bbar[i], PlayerInfo[i][pBladder]);
(
LINE102374)ShowProgressBarForPlayer(ibbar[i]);
(
LINE103995)SetProgressBarValue(hbar[i], PlayerInfo[i][pHunger]);
(
LINE103996)UpdateProgressBar(hbar[i], PlayerInfo[i][pHunger]);
(
LINE103997)ShowProgressBarForPlayer(ihbar[i]);
(
LINE104027)SetProgressBarValue(ebar[i], PlayerInfo[i][pEnergy]);
(
LINE104028)SetProgressBarValue(bbar[i], PlayerInfo[i][pBladder]);
(
LINE104029)SetProgressBarValue(hbar[i], PlayerInfo[i][pHunger]);
(
LINE104030)SetProgressBarValue(healbar[i], health);
(
LINE104031)SetProgressBarValue(armourbar[i], armour);
(
LINE104033)UpdateProgressBar(ebar[i], PlayerInfo[i][pEnergy]);
(
LINE104034)UpdateProgressBar(bbar[i], PlayerInfo[i][pBladder]);
(
LINE104035)UpdateProgressBar(hbar[i], PlayerInfo[i][pHunger]);
(
LINE104036)UpdateProgressBar(armourbar[i], armour);
(
LINE104037)UpdateProgressBar(healbar[i], health);
(
LINE104039)ShowProgressBarForPlayer(iebar[i]);
(
LINE104040)ShowProgressBarForPlayer(ibbar[i]);
(
LINE104041)ShowProgressBarForPlayer(ihbar[i]); 



Re: Tag Mismatch - Calisthenics - 12.06.2018

PlayerBar: tag -> CreatePlayerProgressBar
Bar: tag -> CreateProgressBar

You don't want global, so change:
CreateProgressBar to CreatePlayerProgressBar
SetProgressBarValue to SetPlayerProgressBarValue
etc.

Open the include file and see the "Player Bars" functions. The invalid bar ID is also changed to
= {INVALID_PLAYER_BAR_ID, ...};

However, you're using the old version. You can find the latest here: https://sampforum.blast.hk/showthread.php?tid=537468


Re: Tag Mismatch - AlfaSufaIndo - 12.06.2018

Quote:
Originally Posted by Calisthenics
Посмотреть сообщение
PlayerBar: tag -> CreatePlayerProgressBar
Bar: tag -> CreateProgressBar

You don't want global, so change:
CreateProgressBar to CreatePlayerProgressBar
SetProgressBarValue to SetPlayerProgressBarValue
etc.

Open the include file and see the "Player Bars" functions. The invalid bar ID is also changed to
= {INVALID_PLAYER_BAR_ID, ...};

However, you're using the old version. You can find the latest here: https://sampforum.blast.hk/showthread.php?tid=537468
So just add "Player" at CreateProgressBar, GetProgressBarValue etc?


Re: Tag Mismatch - JasonRiggs - 12.06.2018

Quote:
Originally Posted by AlfaSufaIndo
Посмотреть сообщение
So just add "Player" at CreateProgressBar, GetProgressBarValue etc?
And install the newest version.


Re: Tag Mismatch - Gammix - 12.06.2018

100k+ lines of code, is this two godfather scripts combined?


Re: Tag Mismatch - AlfaSufaIndo - 12.06.2018

I can't install the newer version.. i got message "The terminal process terminated with exit code: 3221225477"
I using Visual Studio Code btw.


Re: Tag Mismatch - AlfaSufaIndo - 12.06.2018

Quote:
Originally Posted by Gammix
Посмотреть сообщение
100k+ lines of code, is this two godfather scripts combined?
XD XD XD Hahahaha


Re: Tag Mismatch - AlfaSufaIndo - 12.06.2018

Quote:
Originally Posted by JasonRiggs
Посмотреть сообщение
And install the newest version.
I alredy change and update progress. but it i got an error like
"Undefined symbol "CreatePlayerProgressBar"
"Undefined symbol "SetPlayerProgressBarValue"
"tag mismatch" etc


Re: Tag Mismatch - AlfaSufaIndo - 12.06.2018

Quote:
Originally Posted by ******
Посмотреть сообщение
That's not a joke. Why is everything in one monolithic file?
I don't know its not my gamemode, it's my friend's gamemode