Tag mismatch player health

I'm trying to get the health of a player but I'm getting a tag mismatch error on the code below.

new health;
GetPlayerHealth(playerid, health);

Hopefully someone can help me, this is important to my server.

Answers


This is a common problem in SA:MP (which I presume is what you're developing for). GetPlayerHealth gives the player's health as a float, but you're saving it as an untagged variable.

To fix this, simply change new health; to new Float:health;


Need Your Help

Swift subclassing UITextField issues

uitextfield swift uitextfielddelegate xcode6

I've subclassed UITextField and added two variables and a convenience function. One variables holds a String key and the other holds a reference to another TextField which is used to create a custo...

Relative Path for WSDL in CXF Webservice Client

wsdl cxf relative-path

In my Application I use many Webservices. As the WSDL does not change, I have integrated the WSDL files in my project. If I use the WSDL2Java Tool from CXF, the WSDL locations absolute path is hard...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.