Tag Mismatch? How...
#4

Alright, figured it out.
Correct way:
Код:
forward Float:GetHealth(playerid);
public Float:GetHealth(playerid)
{
	new Float:x;
	GetPlayerHealth(playerid, x);
	return x;
}
The reason for this, correct me if I'm wrong, is that functions which return a tag, such as a float, need to be forwarded and tagged.
Reply


Messages In This Thread
Tag Mismatch? How... - by MsgtHill - 26.12.2013, 01:27
Re: Tag Mismatch? How... - by Hansrutger - 26.12.2013, 01:34
Re: Tag Mismatch? How... - by MsgtHill - 26.12.2013, 01:37
Re: Tag Mismatch? How... - by MsgtHill - 26.12.2013, 01:45

Forum Jump:


Users browsing this thread: 2 Guest(s)