PDA

View Full Version : warning 213: tag mismatch


rati555
25/04/2012, 08:10 PM
stock SetPlayerHealthEx(playerid,Float:hp)
{
SetPVarFloat(playerid,"health",hp);
SetPlayerHealth(playerid,GetPVarFloat(playerid,"health"));
return GetPVarFloat(playerid,"health"); // warning 213: tag mismatch
}

[KHK]Khalid
25/04/2012, 08:31 PM
I got no errors while compiling it! I guess there's something somewhere in your script which affects (Pvar "health") badly.

SuperViper
25/04/2012, 11:28 PM
Float: SetPlayerHealthEx(playerid, Float:hp)
{
SetPVarFloat(playerid,"health",hp);
SetPlayerHealth(playerid,GetPVarFloat(playerid,"health"));
return GetPVarFloat(playerid,"health"); // warning 213: tag mismatch
}