13.04.2009, 20:22
Can somebady tell me what are doing this 2 "parameters"
first one : that 2 points ( : )
the last one : the question mark ( ? )
Here's an Boylet Example :
first one : that 2 points ( : )
the last one : the question mark ( ? )
Here's an Boylet Example :
pawn Код:
bool:IsInReach(Float:x,Float:y,Float:z,Float:x2,Float:y2,Float:z2,Float:dist)
{
x = (x > x2) ? x - x2 : x2 - x;
if(x > dist) return false;
y = (y > y2) ? y - y2 : y2 - y;
if(y > dist) return false;
z = (z > z2) ? z - z2 : z2 - z;
if(z > dist) return false;
return true;
}