help?
#1

I'm always getting this error while compiling:
Код:
error 001: expected token: "-identifier-", but found "-rational value-"
in this scipt
Код:
stock CheckPlayerDistanceToVehicle(Float:radi, playerid, vehicleid)
{
	if(IsPlayerConnected(playerid))
	{
	    new Float:PX,Float:PY,Float:PZ,Float:X,Float:Y,Float:Z;
	    GetPlayerPos(playerid,PX,PY,PZ);
	    GetVehiclePos(vehicleid, X,Y,Z);
	    new Float:Distance = (X-PX)*(X-PX)+(Y-PY)*(Y-PY)+(Z-PZ)*(Z-PZ);
	    if(Distance <= radi*radi)
	    {
	        return 1;
	    }
	}
	return 0;
}
I'm using that script for my trunk system, but now, it failed...
Help, please!
Reply


Messages In This Thread
help? - by Black_Sun1 - 14.02.2011, 20:07
Re: help? - by Ash. - 14.02.2011, 20:10
Re: help? - by Black_Sun1 - 14.02.2011, 20:37
Re: help? - by Black_Sun1 - 15.02.2011, 17:50
Re: help? - by Ash. - 15.02.2011, 17:59
Re: help? - by Black_Sun1 - 15.02.2011, 18:40
Re: help? - by Ash. - 15.02.2011, 18:46
Re: help? - by Black_Sun1 - 15.02.2011, 19:11
Re: help? - by Black_Sun1 - 15.02.2011, 19:45
Re: help? - by Black_Sun1 - 16.02.2011, 16:19

Forum Jump:


Users browsing this thread: 1 Guest(s)