[HELP] Compile Error
#4

This is not a missing bracket

It is because you have to "Add" PointToPlayer

Add this somewhere out of a callback
Код:
forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);
public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
{
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;
}
Reply


Messages In This Thread
[HELP] Compile Error - by GloomY - 27.09.2009, 11:49
Re: [HELP] Compile Error - by Hiitch - 27.09.2009, 11:50
Re: [HELP] Compile Error - by GloomY - 27.09.2009, 17:47
Re: [HELP] Compile Error - by Desert - 27.09.2009, 18:18
Re: [HELP] Compile Error - by Shelton92 - 03.04.2010, 05:36

Forum Jump:


Users browsing this thread: 1 Guest(s)