Need help with something
#1

C:\Users\-\Desktop\pawno\gamemodes\SoLSv2.pwn(43971) : warning 219: local variable "Distance" shadows a variable at a preceding level

What does that mean?

Line 43971:
new Floatistance = (X-PX)*(X-PX)+(Y-PY)*(Y-PY)+(Z-PZ)*(Z-PZ);

Line 43964 - 43978:
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 Floatistance = (X-PX)*(X-PX)+(Y-PY)*(Y-PY)+(Z-PZ)*(Z-PZ);
if(Distance <= radi*radi)
{
return 1;
}
}
return 0;
}

How can i fix this? Please help
Reply


Messages In This Thread
Need help with something - by kevin13 - 12.06.2009, 22:06
Re: Need help with something - by efeX - 12.06.2009, 22:16
Re: Need help with something - by kevin13 - 12.06.2009, 22:18
Re: Need help with something - by kevin13 - 13.06.2009, 06:54
Re: Need help with something - by dice7 - 13.06.2009, 07:11
Re: Need help with something - by kevin13 - 13.06.2009, 07:22

Forum Jump:


Users browsing this thread: 1 Guest(s)