warning 213: 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: warning 213: tag mismatch (
/showthread.php?tid=558757)
warning 213: tag mismatch -
TheTerminator - 18.01.2015
pwn(1071) : warning 213: tag mismatch
pawn Код:
GetPlayerProgressBarValue(playerid, Food[playerid]);
For the life of me I can't find what tag mismatch means, or how to fix it... Someone, please?
Re: warning 213: tag mismatch -
Schneider - 18.01.2015
That second parameter represents the progressbar-id.
Also GetPlayerProgressBarValue returns a float, not an integer.
Re: warning 213: tag mismatch -
TheTerminator - 18.01.2015
Nothing I've tried works
pawn Код:
new Food[MAX_PLAYERS];
GetPlayerProgressBarValue(playerid, Food[playerid]);
SetPlayerProgressBarValue(playerid, Food[playerid], -1);
Here's the code, please just post the fix and I'll study from it..
Re: warning 213: tag mismatch -
Schneider - 18.01.2015
pawn Код:
new PlayerBar:Food[MAX_PLAYERS];
pawn Код:
Food[playerid] = CreatePlayerProgressBar(playerid, 570.0, 105.0, 55.5, 3.2, yellow, 100.0, BAR_DIRECTION_RIGHT);
SetPlayerProgressBarValue(playerid, Food[playerid], PlayerInfo[playerid][pHunger]);
ShowPlayerProgressBar(playerid, Food[playerid]);
pawn Код:
new Float:value;
value = GetPlayerProgressBarValue(playerid, Food[playerid]);
Re: warning 213: tag mismatch -
TheTerminator - 18.01.2015
Thank you for your help and patience, repped!