Tag Mismatch
#1

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 код:
(LINE: 801)new PlayerBar:armourbar[MAX_PLAYERS] = {INVALID_BAR_ID, ...};
(
LINE: 802)new PlayerBar:healbar[MAX_PLAYERS] = {INVALID_BAR_ID, ...};
(
LINE: 803)new PlayerBar:hbar[MAX_PLAYERS] = {INVALID_BAR_ID, ...};
(
LINE: 804)new PlayerBar:bbar[MAX_PLAYERS] = {INVALID_BAR_ID, ...};
(
LINE: 805)new PlayerBar:ebar[MAX_PLAYERS] = {INVALID_BAR_ID, ...};
(
LINE: 33940)healbar[playerid] = CreateProgressBar(549.0, 353.7, 54.0, 12.0, -16777045, 100.0);
(
LINE: 33941)armourbar[playerid] = CreateProgressBar(549.0, 368.3, 54.0, 12.0, -1, 100.0);
(
LINE: 33942)hbar[playerid] = CreateProgressBar(549.5, 395.2, 54.0, 12.0, 16711766, 100.0);
(
LINE: 33943)bbar[playerid] = CreateProgressBar(549.5, 413.7, 54.0, 12.0, 16711766, 100.0);
(
LINE: 33944)ebar[playerid] = CreateProgressBar(549.5, 431.6, 54.0, 12.0, 16711766, 100.0);
(
LINE: 33946)SetProgressBarValue(armourbar[playerid], armour);
(
LINE: 33947)SetProgressBarValue(hbar[playerid], PlayerInfo[playerid][pHunger]);
(
LINE: 33948)SetProgressBarValue(ebar[playerid], PlayerInfo[playerid][pEnergy]);
(
LINE: 33949)SetProgressBarValue(bbar[playerid], PlayerInfo[playerid][pBladder]);
(
LINE: 33950)SetProgressBarValue(healbar[playerid], health);
(
LINE: 33952)ShowProgressBarForPlayer(playerid, healbar[playerid]);
(
LINE: 33953)ShowProgressBarForPlayer(playerid, armourbar[playerid]);
(
LINE: 33954)ShowProgressBarForPlayer(playerid, ebar[playerid]);
(
LINE: 33955)ShowProgressBarForPlayer(playerid, hbar[playerid]);
(
LINE: 33956)ShowProgressBarForPlayer(playerid, bbar[playerid]);
(
LINE: 33958)UpdateProgressBar(armourbar[playerid], armour);
(
LINE: 33959)UpdateProgressBar(hbar[playerid], PlayerInfo[playerid][pHunger]);
(
LINE: 33960)UpdateProgressBar(ebar[playerid], PlayerInfo[playerid][pEnergy]);
(
LINE: 33961)UpdateProgressBar(bbar[playerid], PlayerInfo[playerid][pBladder]);
(
LINE: 33962)UpdateProgressBar(healbar[playerid], health);
(
LINE: 102355)SetProgressBarValue(ebar[i], PlayerInfo[i][pEnergy]);
(
LINE: 102356)UpdateProgressBar(ebar[i], PlayerInfo[i][pEnergy]);
(
LINE: 102357)ShowProgressBarForPlayer(i, ebar[i]);
(
LINE: 102372)SetProgressBarValue(bbar[i], PlayerInfo[i][pBladder]);
(
LINE: 102373)UpdateProgressBar(bbar[i], PlayerInfo[i][pBladder]);
(
LINE: 102374)ShowProgressBarForPlayer(i, bbar[i]);
(
LINE: 103995)SetProgressBarValue(hbar[i], PlayerInfo[i][pHunger]);
(
LINE: 103996)UpdateProgressBar(hbar[i], PlayerInfo[i][pHunger]);
(
LINE: 103997)ShowProgressBarForPlayer(i, hbar[i]);
(
LINE: 104027)SetProgressBarValue(ebar[i], PlayerInfo[i][pEnergy]);
(
LINE: 104028)SetProgressBarValue(bbar[i], PlayerInfo[i][pBladder]);
(
LINE: 104029)SetProgressBarValue(hbar[i], PlayerInfo[i][pHunger]);
(
LINE: 104030)SetProgressBarValue(healbar[i], health);
(
LINE: 104031)SetProgressBarValue(armourbar[i], armour);
(
LINE: 104033)UpdateProgressBar(ebar[i], PlayerInfo[i][pEnergy]);
(
LINE: 104034)UpdateProgressBar(bbar[i], PlayerInfo[i][pBladder]);
(
LINE: 104035)UpdateProgressBar(hbar[i], PlayerInfo[i][pHunger]);
(
LINE: 104036)UpdateProgressBar(armourbar[i], armour);
(
LINE: 104037)UpdateProgressBar(healbar[i], health);
(
LINE: 104039)ShowProgressBarForPlayer(i, ebar[i]);
(
LINE: 104040)ShowProgressBarForPlayer(i, bbar[i]);
(
LINE: 104041)ShowProgressBarForPlayer(i, hbar[i]); 
Reply
#2

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
Reply
#3

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?
Reply
#4

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

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

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

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

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
Reply
#9

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)