SA-MP Forums Archive
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=337309)



warning 213: tag mismatch - rati555 - 25.04.2012

pawn Код:
stock SetPlayerHealthEx(playerid,Float:hp)
{
    SetPVarFloat(playerid,"health",hp);
    SetPlayerHealth(playerid,GetPVarFloat(playerid,"health"));
    return GetPVarFloat(playerid,"health"); // warning 213: tag mismatch
}



Re: warning 213: tag mismatch - [KHK]Khalid - 25.04.2012

I got no errors while compiling it! I guess there's something somewhere in your script which affects (Pvar "health") badly.


Re: warning 213: tag mismatch - SuperViper - 25.04.2012

pawn Код:
Float: SetPlayerHealthEx(playerid, Float:hp)
{
    SetPVarFloat(playerid,"health",hp);
    SetPlayerHealth(playerid,GetPVarFloat(playerid,"health"));
    return GetPVarFloat(playerid,"health"); // warning 213: tag mismatch
}