warning 213: tag mismatch
#1

pwn(1071) : warning 213: tag mismatch


pawn Код:
new Food[MAX_PLAYERS];
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?
Reply
#2

That second parameter represents the progressbar-id.
Also GetPlayerProgressBarValue returns a float, not an integer.
Reply
#3

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

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]);
Reply
#5

Thank you for your help and patience, repped!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)