PlayerToPoint Problem...
#1

Very hello,

I have an extremely simple code, BUT I got an error in it.

On Top:
Код:
forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);
On Bottom:
Код:
public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
{
  if(IsPlayerConnected(playerid))
  {
	new Float:oldposx, Float:oldposy, Float:oldposz;
	new Float:tempposx, Float:tempposy, Float:tempposz;
	GetPlayerPos(playerid, oldposx, oldposy, oldposz);
	tempposx = (oldposx -x);
	tempposy = (oldposy -y);
	tempposz = (oldposz -z);
	if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
	{
	return 1;
	}
	}
	return 0;
	}
This equals my error:
Код:
warning 235: public function lacks forward declaration (symbol "PlayerToPoint")
Extreme Thanks

Reply


Messages In This Thread
PlayerToPoint Problem... - by stieben - 16.07.2009, 14:43
Re: PlayerToPoint Problem... - by abhinavdabral - 16.07.2009, 14:46
Re: PlayerToPoint Problem... - by stieben - 16.07.2009, 14:48
Re: PlayerToPoint Problem... - by abhinavdabral - 16.07.2009, 14:50
Re: PlayerToPoint Problem... - by stieben - 16.07.2009, 14:51
Re: PlayerToPoint Problem... - by abhinavdabral - 16.07.2009, 14:53

Forum Jump:


Users browsing this thread: 1 Guest(s)