Small error
#1

What's the problem with this
Код:
	if(IsPlayerInRangeOfObject(playerid, 987, 5.0)) //ERROR LINE
	{
	    SetPlayerHealth(playerid, 10);
	    return 1;
	}
Код:
warning 203: symbol is never used: "distance"
Код:
IsPlayerInRangeOfObject(playerid, objectid, Float:distance=5.0)
{
	new Float:x, Float:y, Float:z;
	GetObjectPos(objectid, x, y, z);
	return (GetPlayerDistanceFromPoint(playerid, x, y, z) < 5.0);
}
Reply


Messages In This Thread
Small error - by Squirrel - 03.01.2013, 21:03
Re: Small error - by ReD_Boii - 03.01.2013, 21:11
Re: Small error - by GhostDeath - 03.01.2013, 21:12
Re: Small error - by Squirrel - 03.01.2013, 21:13
Re: Small error - by Flyfishes - 03.01.2013, 21:14
Re: Small error - by GhostDeath - 03.01.2013, 21:15
Re: Small error - by Squirrel - 03.01.2013, 21:15
Re: Small error - by GhostDeath - 03.01.2013, 21:17

Forum Jump:


Users browsing this thread: 1 Guest(s)